React Navigation v5 async storage trigger problem #9446
-
Hi,
` as above, there is construction of the route.I keep the issignedin value in asyncstorage. When the user logs in, issignedin: true, but it doesn't automatically redirect me to the Home screen. When you do this with Redux, it automatically redirects to the Home screen, but AsyncStorage does not.. How do I solve this? iOS or Android : Android |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You need a global state management to trigger a re render to switch between auth & no auth state. I always used context api because it is built in react js. If you use async storage just call a state update to switch! |
Beta Was this translation helpful? Give feedback.
You need a global state management to trigger a re render to switch between auth & no auth state. I always used context api because it is built in react js.
If you use async storage just call a state update to switch!