-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.jsx
36 lines (30 loc) · 851 Bytes
/
App.jsx
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 from 'react';
import { StyleSheet, Platform } from 'react-native';
import { StatusBar } from 'expo-status-bar';
import { useFonts } from 'expo-font';
import { fontCollection } from './Global/fonts';
import MainNavigator from './Navigation/MainNav';
import { Provider } from 'react-redux';
import { store } from './app/store/store';
import { init } from './Data/db/index'
init()
const App = () => {
const [fontsLoaded] = useFonts(fontCollection);
if (!fontsLoaded) return null;
return (
<>
<StatusBar style={styles.status} />
<Provider store={store}>
<MainNavigator />
</Provider>
</>
);
};
export default App;
const styles = StyleSheet.create({
status: {
flex: 1,
backgroundColor: 'lightgray',
paddingTop: Platform.OS === 'android' ? StatusBar.currentHeight : 0,
},
});