File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @thecodingmachine/react-native-boilerplate" ,
3- "version" : " 2.2.1 " ,
3+ "version" : " 2.2.2 " ,
44 "description" : " TheCodingMachine React Native Boilerplate" ,
55 "repository" : {
66 "type" : " git" ,
Original file line number Diff line number Diff line change @@ -26,14 +26,23 @@ const ApplicationNavigator = () => {
2626 }
2727 } , [ applicationIsLoading ] )
2828
29+ // on destroy needed to be able to reset when app close in background (Android)
30+ useEffect (
31+ ( ) => ( ) => {
32+ setIsApplicationLoaded ( false )
33+ MainNavigator = null
34+ } ,
35+ [ ] ,
36+ )
37+
2938 return (
3039 < AppearanceProvider >
3140 < SafeAreaView style = { [ Layout . fill , { backgroundColor : colors . card } ] } >
3241 < NavigationContainer theme = { NavigationTheme } ref = { navigationRef } >
3342 < StatusBar barStyle = { darkMode ? 'light-content' : 'dark-content' } />
3443 < Stack . Navigator headerMode = { 'none' } >
3544 < Stack . Screen name = "Startup" component = { IndexStartupContainer } />
36- { isApplicationLoaded && (
45+ { isApplicationLoaded && MainNavigator != null && (
3746 < Stack . Screen
3847 name = "Main"
3948 component = { MainNavigator }
You can’t perform that action at this time.
0 commit comments