-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathApp.js
More file actions
36 lines (27 loc) · 909 Bytes
/
App.js
File metadata and controls
36 lines (27 loc) · 909 Bytes
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
35
36
import React, { useEffect } from 'react'
import { Provider } from 'react-redux'
import SplashScreen from 'react-native-splash-screen'
import { PersistGate } from 'redux-persist/es/integration/react'
import configureStore from './store'
// import Icon from 'react-native-vector-icons/MaterialIcons';
// Icon.loadFont();
import RootContainer from './screens/RootContainer'
// the hoc
// import i18n from './i18n'
// import { I18nextProvider } from 'react-i18next';
// import { withTranslation } from 'react-i18next';
const App: () => React$Node = () => {
// Splash screen
// useEffect(() => {
// SplashScreen.hide();
// }, []);
const { persistor, store } = configureStore();
return (
<Provider store={store}>
<PersistGate persistor={persistor}>
<RootContainer />
</PersistGate>
</Provider>
);
};
export default App;