-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
45 lines (39 loc) · 1.56 KB
/
Copy pathApp.js
File metadata and controls
45 lines (39 loc) · 1.56 KB
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
import { NavigationContainer } from "@react-navigation/native"
import { createNativeStackNavigator } from "@react-navigation/native-stack"
import UserLoginScreen from "./app/screens/auth/UserLogin";
import ShopTab from "./app/screens/shop/ShopTab";
import RegisterScreen from "./app/screens/auth/RegisterScreen";
import ForgetScreen from "./app/screens/auth/ForgetScreen";
import UserPannel from "./app/screens/shop/UserPannel";
const Stack = createNativeStackNavigator();
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator screenOptions={{headerStyle:{
backgroundColor:"#275e54",
},headerTitleStyle:{
color:"white"
},
headerTintColor:"white"}} >
<Stack.Screen name="ShopTab" component={ShopTab} options={{headerShown:false}} />
<Stack.Screen name="userLogin" component={UserLoginScreen} options={{
title:"Login"
}} />
<Stack.Screen name="Registration" component={RegisterScreen} options={{
title:"Registration",
headerBackVisible:false
}} />
<Stack.Screen name="ForgetScreen" component={ForgetScreen} options={{
title:"Forget Password",
headerBackVisible:true
}} />
<Stack.Screen name="UserPannel" component={UserPannel} options={{
title:"Dashboard",
headerShown:false,
headerBackVisible:true
}} />
</Stack.Navigator>
</NavigationContainer>
)
}
export default App