forked from Proder/cardTokenizer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
77 lines (69 loc) · 2.15 KB
/
App.js
File metadata and controls
77 lines (69 loc) · 2.15 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import UpdateProfile from "./UpdateProfile.js";
import UserProfile from "./UserProfile";
import Card from "./Card.js";
import DashboardScreen from './Dashboard';
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import welcome from "./components/Welcome";
import Signup from "./components/signup";
import Login from "./components/login";
import Listing from "./components/Listing";
const Stack = createNativeStackNavigator();
const MyStack = () => {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="welcome"
component={welcome}
options={{
title: 'Tokenizer', //Set Header Title
headerStyle: {
backgroundColor: '#307ecc', //Set Header color
},
headerTintColor: '#fff', //Set Header text color
headerTitleStyle: {
fontWeight: 'bold', //Set Header text style
},
}}
/>
<Stack.Screen
name="signup"
component={Signup}
options={{ headerShown: false }}
/>
{/* Navigation Drawer as a landing page */}
<Stack.Screen
name="login"
component={Login}
// Hiding header for Navigation Drawer
options={{ headerShown: false }}
/>
<Stack.Screen
name="Dashboard"
component={DashboardScreen}
/>
<Stack.Screen name="UserProfile" component={UserProfile}
/>
<Stack.Screen name="UpdateProfile" component={UpdateProfile}
/>
<Stack.Screen name="Card" component={Card}
/>
<Stack.Screen name="Listing" component={Listing}
/>
</Stack.Navigator>
</NavigationContainer>
);
};
export default MyStack
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#ff800b',
alignItems: 'center',
justifyContent: 'center',
},
});