Skip to content

Collections of react native apps following the best practices!

Notifications You must be signed in to change notification settings

vikassharma96/react-native-aaps

Repository files navigation

React Native

React Navigation V5 - use navigation.push() when want to navigate to the same page which is not possible with navigation.navigate() goBack() - to go back popToTop() - go back to the first screen in the stack replace - replace current Passing data between components and navigation options using setparams and getparams Header interaction with its screen component https://reactnavigation.org/docs/header-buttons/#header-interaction-with-its-screen-component useEffect, useCallback, useLayoutEffect useCallback - this allows us to wrap a function so that this function is actually cached by React and is only recreated if its dependencies changed. only updates when state changes. redux data and navigation options state management with redux

Optimize memory usage and performance using react-native-screens screens which we go to with the drawer are actually all kept in memory so to say, they're not recreated and It's a different thing for stack navigation it's recreated put will update the entire data patch will update at particular field

About

Collections of react native apps following the best practices!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published