-
Notifications
You must be signed in to change notification settings - Fork 2
/
App.tsx
27 lines (24 loc) · 955 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
import { DefaultTheme, NavigationContainer } from '@react-navigation/native';
import { AppProvider } from './src/contexts/AppContext';
import Demo from './src/screens/Demo';
import Instructions from './src/screens/Instructions';
import { LogBox } from 'react-native';
import React from 'react';
import Splash from './src/screens/Splash';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
const Stack = createNativeStackNavigator();
function App() {
LogBox.ignoreLogs([/^Require cycle:*/]);
return (
<AppProvider>
<NavigationContainer theme={DefaultTheme}>
<Stack.Navigator screenOptions={{ headerShown: false }}>
<Stack.Screen name='Splash' component={Splash} />
<Stack.Screen name='Instructions' component={Instructions} />
<Stack.Screen name='Demo' component={Demo} />
</Stack.Navigator>
</NavigationContainer>
</AppProvider>
);
}
export default App;