-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
28 lines (22 loc) · 727 Bytes
/
Copy pathApp.js
File metadata and controls
28 lines (22 loc) · 727 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
import React, { useState } from 'react';
import { LogBox } from 'react-native';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import { store, persistor } from '@modules';
import AppContainer from '@navigations';
import { Splash } from '@components';
import i18n from '@utils/i18n';
i18n.setI18nConfig();
LogBox.ignoreAllLogs(true);
global.internet = true;
export default App = () => {
const [splash, setSplash] = useState(true);
setTimeout(() => setSplash(false), 1000);
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
{splash ? <Splash /> : <AppContainer />}
</PersistGate>
</Provider>
);
}