-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
40 lines (37 loc) · 1.25 KB
/
App.tsx
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
37
38
39
40
import {LogBox, StatusBar} from 'react-native';
import React, {useEffect} from 'react';
import {PersistGate} from 'redux-persist/integration/react';
import {Provider} from 'react-redux';
import ErrorBoundaries from './src/components/Wrapper/ErrorBoundaries';
import {pStore, store} from './src/Store/Store';
import RootNavigator from './src/navigation/RootNavigator';
import {KeyboardProvider} from 'react-native-keyboard-controller';
import notificationService from './src/Services/notificationServices';
type Props = {};
const App: React.FC<Props> = ({}) => {
useEffect(() => {
LogBox.ignoreAllLogs();
notificationService();
}, []);
return (
<KeyboardProvider enabled statusBarTranslucent>
<ErrorBoundaries key={'Drive Easy'}>
<Provider store={store} key={'Drive Easy'}>
<PersistGate
loading={null}
persistor={pStore}
key={'tDrive Easyrimit'}>
<StatusBar
backgroundColor={'transparent'}
barStyle={'dark-content'}
translucent
animated={true}
/>
<RootNavigator key={'Drive Easy'} />
</PersistGate>
</Provider>
</ErrorBoundaries>
</KeyboardProvider>
);
};
export default App;