Created
July 11, 2019 11:15
-
-
Save sibelius/fc07bbe059da0cbe6ead211adc281f8f to your computer and use it in GitHub Desktop.
NavigationPersistence snippet to save navigation state
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<AppRouter | |
ref={stackNavigatorRef => NavigatorService.setContainer(stackNavigatorRef)} | |
screenProps={{ | |
t, | |
theme, | |
}} | |
{...getPersistenceFunctions(navigationPersistenceKey)} | |
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Change to
import AsyncStorage from '@react-native-community/async-storage';