-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
31 lines (27 loc) · 834 Bytes
/
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
import React from 'react';
import 'react-native-gesture-handler';
import {
NavigationContainer,
useNavigationContainerRef,
} from '@react-navigation/native';
import store from 'store/RootStore';
import {Provider} from 'react-redux';
import {useFlipper} from '@react-navigation/devtools';
import FlashMessage from 'react-native-flash-message';
import RootNavigator from 'navigation/RootNavigator';
import {SafeAreaProvider} from 'react-native-safe-area-context';
const App = () => {
const navigationRef = useNavigationContainerRef();
useFlipper(navigationRef);
return (
<Provider store={store}>
<SafeAreaProvider>
<NavigationContainer>
<RootNavigator />
</NavigationContainer>
</SafeAreaProvider>
<FlashMessage position="top" />
</Provider>
);
};
export default App;