forked from anirudhmalik/xhunter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
33 lines (28 loc) · 928 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import React, { useEffect } from 'react';
import { NavigationContainer } from '@react-navigation/native';
import SplashScreen from 'react-native-splash-screen'
// redux provider
import { Provider as ReduxProvider } from 'react-redux';
import { PersistGate } from 'redux-persist/lib/integration/react';
// redux
import { store, persistor } from './src/redux/store';
// theme provider
import { NativeBaseProvider } from 'native-base';
import AppNavigation from './src/navigation/AppNavigation';
import { customTheme } from './src/theme/customTheme'
export default function App() {
useEffect(() => {
SplashScreen.hide();
}, []);
return (
<ReduxProvider store={store}>
<PersistGate loading={null} persistor={persistor}>
<NativeBaseProvider theme={customTheme}>
<NavigationContainer>
<AppNavigation/>
</NavigationContainer>
</NativeBaseProvider>
</PersistGate>
</ReduxProvider>
);
}