-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.tsx
45 lines (38 loc) · 1.16 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
41
42
43
44
45
/**
* Created by @jdl_developer
* Main Function to decide behavior of the app
*/
import React from 'react';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { SafeAreaView, StatusBar, StyleSheet, LogBox } from 'react-native';
import RootNavigator from './src/navigation/RootNavigator';
import { theme } from './src/theme/theme';
import { Provider as ReduxProvider } from 'react-redux';
import Store, { persistor } from './src/state/Store';
import { PersistGate } from 'redux-persist/integration/react';
const App = () => {
LogBox.ignoreAllLogs(true);
//persistor.purge();
return (
<SafeAreaProvider>
<ReduxProvider store={Store}>
<PersistGate loading={null} persistor={persistor}>
<SafeAreaView style={[styles.container]}>
<StatusBar
barStyle={'light-content'}
backgroundColor={theme.colors.dark}
/>
<RootNavigator />
</SafeAreaView>
</PersistGate>
</ReduxProvider>
</SafeAreaProvider>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: theme.colors.dark,
},
});
export default App;