-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathApp.js
More file actions
42 lines (35 loc) · 1.1 KB
/
App.js
File metadata and controls
42 lines (35 loc) · 1.1 KB
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
import React from 'react';
import AppLoading from 'expo-app-loading';
import AuthNavigation from './src/routes/authNavigation';
import StatusBar from './src/config/statusBar';
import { NavigationContainer } from '@react-navigation/native';
import { useFonts, Inter_600SemiBold, Inter_300Light } from '@expo-google-fonts/inter';
import { Provider } from 'react-redux';
import { store, persistor } from './src/state/store';
import { PersistGate } from 'redux-persist/integration/react';
import { enableScreens } from 'react-native-screens';
import TableProvider from './src/contexts/tableProvider';
// enable screens to performance
enableScreens();
function App() {
let [isLoaded] = useFonts({
Inter_600SemiBold,
Inter_300Light,
});
if(!isLoaded) {
return <AppLoading />
};
return(
<NavigationContainer>
<StatusBar />
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<TableProvider>
<AuthNavigation />
</TableProvider>
</PersistGate>
</Provider>
</NavigationContainer>
);
};
export default App;