-
Notifications
You must be signed in to change notification settings - Fork 20
/
App.js
41 lines (34 loc) · 983 Bytes
/
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
36
37
38
39
40
41
import React, { useEffect } from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createStackNavigator, CardStyleInterpolators } from "@react-navigation/stack";
import SplashScreen from "react-native-splash-screen";
import scanner from "./src/scanner";
import home from "./src/home";
const Stack = createStackNavigator();
const AppNavigator = () => {
return (
<Stack.Navigator
initialRouteName="home"
screenOptions={{
headerTitle: false,
headerTransparent: true,
headerBackTitleVisible: false,
headerShown: false,
}}
>
<Stack.Screen name="home" component={home} options={{ headerShown: false }} />
<Stack.Screen name="scanner" component={scanner} />
</Stack.Navigator>
);
};
const App = () => {
useEffect(() => {
SplashScreen.hide();
}, []);
return (
<NavigationContainer>
<AppNavigator />
</NavigationContainer>
);
};
export default App;