-
Notifications
You must be signed in to change notification settings - Fork 3
/
App.js
57 lines (51 loc) · 1.58 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View } from "react-native";
import * as React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
//import MainContainer from './navigation/MainContainer';
import Homescreen from "./screens/Homescreen";
import SignIn from "./screens/SignIn";
import SignUp from "./screens/SignUp";
import RemoteScreen from "./screens/RemoteScreen";
import ProductScreen from "./screens/ProductScreen";
export default function App() {
const Stack = createNativeStackNavigator();
return (
<NavigationContainer>
<Stack.Navigator
screenOptions={{ gestureENabled: false }}
initialRouteName="HomeScreen"
>
<Stack.Screen
name="RemoteScreen"
component={RemoteScreen}
/>
<Stack.Screen
options={{ gestureEnabled: false }}
name="SignIn"
component={SignIn}
/>
<Stack.Screen name="SignUp" component={SignUp} />
<Stack.Screen
options={{ gestureEnabled: false, headerBackVisible: false }}
name="HomeScreen"
component={Homescreen}
/>
<Stack.Screen
options={{ gestureEnabled: false }}
name="ProductScreen"
component={ProductScreen}
/>
</Stack.Navigator>
</NavigationContainer>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});