-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
35 lines (31 loc) · 1.04 KB
/
App.js
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
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import 'react-native-gesture-handler';
import Index from './App/Screens/index';
import { StatusBar, View } from 'react-native';
import MainController from './App/Controller/MainController';
import { createStackNavigator } from '@react-navigation/stack';
import useCachedResources from './App/Helper/setLoadResources';
import { SafeAreaProvider } from 'react-native-safe-area-context';
const Stack = createStackNavigator();
export default function App() {
const isLoadingComplete = useCachedResources();
return (
<SafeAreaProvider style={{
flex:1,
}} >
<StatusBar backgroundColor="white" translucent={false} barStyle="dark-content" />
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="Root"
component={MainController}
options={{
headerShown:false
}}
/>
</Stack.Navigator>
</NavigationContainer>
</SafeAreaProvider>
);
}