-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.jsx
27 lines (24 loc) · 937 Bytes
/
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
import { NavigationContainer } from '@react-navigation/native';
import { registerRootComponent } from 'expo';
import * as React from 'react';
import { AppRegistry, Platform } from 'react-native';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { name as appName } from './app.json';
import RootNavigator from './src/Navigation/RootNavigator';
// import DrawerNav from './src/Navigation/DrawerNavigator';
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in the Expo client or in a native build,
// the environment is set up appropriately
if (Platform.OS === 'android') {
registerRootComponent(App);
} else {
AppRegistry.registerComponent(appName, () => App);
}
const App = () => (
<SafeAreaProvider>
<NavigationContainer>
<RootNavigator />
</NavigationContainer>
</SafeAreaProvider>
);
export default App;