-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
39 lines (35 loc) · 1.57 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
import React from 'react';
import analytics from '@react-native-firebase/analytics';
import { StatusBar } from 'expo-status-bar';
import { View } from 'react-native';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { MenuProvider } from 'react-native-popup-menu';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import { persistor, store } from './redux/store';
import { AddendModalContextProvider } from './src/components/Sheets/AddendModalContext';
import { GameSheetContextProvider } from './src/components/Sheets/GameSheetContext';
import { Navigation } from './src/Navigation';
if (process.env.EXPO_PUBLIC_FIREBASE_ANALYTICS == 'false') {
analytics().setAnalyticsCollectionEnabled(false);
}
export default function App() {
return (
<View style={{ flex: 1, backgroundColor: '#fff' }}>
<GestureHandlerRootView style={{ flex: 1 }}>
<Provider store={store}>
<GameSheetContextProvider>
<MenuProvider>
<AddendModalContextProvider>
<PersistGate loading={null} persistor={persistor}>
<StatusBar />
<Navigation />
</PersistGate>
</AddendModalContextProvider>
</MenuProvider>
</GameSheetContextProvider>
</Provider>
</GestureHandlerRootView>
</View>
);
};