-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
34 lines (31 loc) · 943 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
34
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React, {useEffect} from 'react';
import RNBootSplash from 'react-native-bootsplash';
import {GestureHandlerRootView} from 'react-native-gesture-handler';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import {Provider as StoreProvider} from 'react-redux';
import Router from './js/components/Router';
import {configureStore} from './js/redux/store';
import {MD3DarkTheme, MD3LightTheme} from 'react-native-paper';
const store = configureStore();
const App = () => {
useEffect(() => {
RNBootSplash.hide();
}, []);
return (
<StoreProvider store={store}>
<GestureHandlerRootView style={{flex: 1}}>
<SafeAreaProvider>
<Router theme={MD3DarkTheme}></Router>
</SafeAreaProvider>
</GestureHandlerRootView>
</StoreProvider>
);
};
export default App;