-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.jsx
39 lines (37 loc) · 1.3 KB
/
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
37
38
39
import * as React from 'react';
import {StatusBar} from 'react-native';
import {GestureHandlerRootView} from 'react-native-gesture-handler';
import {SafeAreaView, SafeAreaProvider} from 'react-native-safe-area-context';
import {BottomSheetModalProvider} from '@gorhom/bottom-sheet';
import {RealmWrapper} from './src/realm/RealmWrapper';
import {ThemeProvider} from './src/context';
import {Navigation} from './src/components/Navigation';
import {PaperProvider} from 'react-native-paper';
function App() {
return (
<SafeAreaProvider>
<GestureHandlerRootView style={{flex: 1}}>
<RealmWrapper>
<ThemeProvider>
<PaperProvider>
<BottomSheetModalProvider>
{/* to make IOS status bar white */}
<SafeAreaView
edges={[]}
style={{flex: 1, backgroundColor: 'white'}}>
<StatusBar
animated={false}
backgroundColor="white"
barStyle={'dark-content'}
/>
<Navigation />
</SafeAreaView>
</BottomSheetModalProvider>
</PaperProvider>
</ThemeProvider>
</RealmWrapper>
</GestureHandlerRootView>
</SafeAreaProvider>
);
}
export default App;