File tree 2 files changed +10
-7
lines changed
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { enableScreens } from 'react-native-screens';
10
10
import SplashScreen from 'react-native-splash-screen' ;
11
11
import { DropDownHolder , PushNotification } from './components' ;
12
12
import AppNavigator from './navigation/root-stack' ;
13
+ import AppStateProvider from './redux/provider' ;
13
14
import { theme } from './theme' ;
14
15
15
16
enableScreens ( ) ;
@@ -27,11 +28,13 @@ const App = () => {
27
28
< Root >
28
29
< SafeAreaView style = { styles . container } >
29
30
< PaperProvider >
30
- < NavigationContainer theme = { theme } >
31
- < AppNavigator />
32
- < PushNotification />
33
- < DropdownAlert ref = { ( ref ) => DropDownHolder . setDropDown ( ref ) } />
34
- </ NavigationContainer >
31
+ < AppStateProvider >
32
+ < NavigationContainer theme = { theme } >
33
+ < AppNavigator />
34
+ < PushNotification />
35
+ < DropdownAlert ref = { ( ref ) => DropDownHolder . setDropDown ( ref ) } />
36
+ </ NavigationContainer >
37
+ </ AppStateProvider >
35
38
</ PaperProvider >
36
39
</ SafeAreaView >
37
40
</ Root >
Original file line number Diff line number Diff line change 1
- import { AppRegistry } from 'react-native' ;
1
+ import { AppRegistry } from 'react-native' ;
2
+ import { name as appName } from './app.json' ;
2
3
import App from './app/index' ;
3
- import { name as appName } from './app.json' ;
4
4
import i18next from './app/i18next' ;
5
5
6
6
AppRegistry . registerComponent ( appName , ( ) => App ) ;
You can’t perform that action at this time.
0 commit comments