In this video I’ll show how to we can persist state “pass props” between screens in order to save state using React Navigation 5 without using a state management library or react context.

I’ll show the entire process of installing the libraries, creating the TypeScript types, creating the navigation structure and the pages as well so this video is a little lengthy!

Many people do it this way when persisting state across screens but should be avoided due to the warning it generates: https://github.com/react-navigation/react-navigation/issues/6827

React navigation docs: https://reactnavigation.org/docs/getting-started

#react #navigation

Persisting State Between Screens in React Native The Right Way!
1.20 GEEK