-
Notifications
You must be signed in to change notification settings - Fork 3
/
App.tsx
49 lines (46 loc) · 1.83 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
46
47
48
49
import React from 'react'
import { NavigationContainer } from '@react-navigation/native'
import RootNavigator from './src/navigation/RootNavigator'
import { SafeAreaProvider } from 'react-native-safe-area-context'
import { Provider } from 'react-redux'
import store, { persister } from 'src/store'
import { PersistGate } from 'redux-persist/integration/react'
import MapLibreGL from '@maplibre/maplibre-react-native'
import { Auth0Provider } from 'react-native-auth0'
import { RealmProvider } from 'src/db/RealmProvider'
import 'src/utils/constants/mapboxLogger'
import { GestureHandlerRootView } from 'react-native-gesture-handler'
import 'react-native-get-random-values'
import { ToastProvider } from 'react-native-toast-notifications'
import { StatusBar } from 'expo-status-bar'
import { BottomSheetModalProvider } from '@gorhom/bottom-sheet'
import Bugsnag from '@bugsnag/expo'
import BugSnagConfig from 'src/utils/bugsnag/bugsnag.config'
Bugsnag.start(BugSnagConfig)
MapLibreGL.setAccessToken(null)
export default function App() {
return (
<SafeAreaProvider>
<StatusBar translucent />
<Auth0Provider
domain={process.env.EXPO_PUBLIC_AUTH0_DOMAIN}
clientId={process.env.EXPO_PUBLIC_CLIENT_ID_AUTH0}>
<RealmProvider>
<Provider store={store}>
<ToastProvider>
<PersistGate loading={null} persistor={persister}>
<GestureHandlerRootView style={{ flex: 1 }}>
<BottomSheetModalProvider>
<NavigationContainer>
<RootNavigator />
</NavigationContainer>
</BottomSheetModalProvider>
</GestureHandlerRootView>
</PersistGate>
</ToastProvider>
</Provider>
</RealmProvider>
</Auth0Provider>
</SafeAreaProvider>
)
}