-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
47 lines (43 loc) · 1.36 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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* Generated with the TypeScript template
* https://github.com/react-native-community/react-native-template-typescript
*
* @format
*/
// import {NavigationContainer} from '@react-navigation/native';
import {GestureHandlerRootView} from 'react-native-gesture-handler';
import React from 'react';
import {LogBox, StyleSheet, Text} from 'react-native';
// import {createNativeStackNavigator} from '@react-navigation/native-stack';
import MainStack from './src/MainStack';
import {Provider} from 'react-redux';
import {persistor, store} from './src/app/store';
import {PersistGate} from 'redux-persist/integration/react';
import {BottomSheetModalProvider} from '@gorhom/bottom-sheet';
LogBox.ignoreLogs([
'[notifee] no background event handler has been set. Set a handler via the "onBackgroundEvent" method.',
]);
const App = () => {
return (
<>
<GestureHandlerRootView style={styles.container}>
<PersistGate persistor={persistor} loading={<Text>Loading...</Text>}>
<Provider store={store}>
<BottomSheetModalProvider>
<MainStack />
</BottomSheetModalProvider>
</Provider>
</PersistGate>
</GestureHandlerRootView>
</>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
},
});
export default App;