Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 1.14 KB

readme.md

File metadata and controls

20 lines (17 loc) · 1.14 KB

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