-
Notifications
You must be signed in to change notification settings - Fork 7
/
App.js
87 lines (78 loc) · 2.51 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
* @lint-ignore-every XPLATJSCOPYRIGHT1
*/
import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View} from 'react-native';
import { createStackNavigator, createAppContainer,createSwitchNavigator } from 'react-navigation';
import LoginScreen from "./src/screens/Login";
import SignupScreen from "./src/screens/Signup";
import DashboardScreen from "./src/screens/Dashboard";
import ForgotPasswordScreen from "./src/screens/ForgotPassword";
import MenuScreen from "./src/screens/Menu";
import WalletScreen from "./src/screens/Wallet";
import SettingsScreen from "./src/screens/Settings";
import AuthLoadingScreen from "./src/screens/AuthLoading";
import EditProfileScreen from "./src/screens/EditProfile";
import ChangePasswordScreen from "./src/screens/ChangePassword";
import GeneratePinScreen from "./src/screens/GeneratePin";
import VerifyPinScreen from "./src/screens/VerifyPin";
import PairScreen from "./src/screens/Pair";
import ReceviePaymentScreen from "./src/screens/ReceviePayment";
import SendPaymentScreen from "./src/screens/SendPayment";
import QrScannerScreen from "./src/screens/QrScanner";
import HistoryReceiveScreen from "./src/screens/HistoryReceive";
const AppStack = createStackNavigator(
{
Dashboard: DashboardScreen,
Menu: MenuScreen,
Wallet:WalletScreen,
Settings:SettingsScreen,
EditProfile:EditProfileScreen,
ChangePassword:ChangePasswordScreen,
GeneratePin:GeneratePinScreen,
Pair:PairScreen,
ReceviePayment:ReceviePaymentScreen,
SendPayment:SendPaymentScreen,
QrScanner:QrScannerScreen,
HistoryReceive:HistoryReceiveScreen,
});
const AppStack2 = createStackNavigator(
{
VerifyPin:VerifyPinScreen,
Dashboard: DashboardScreen,
Menu: MenuScreen,
Wallet:WalletScreen,
Settings:SettingsScreen,
EditProfile:EditProfileScreen,
ChangePassword:ChangePasswordScreen,
GeneratePin:GeneratePinScreen,
Pair:PairScreen,
ReceviePayment:ReceviePaymentScreen,
SendPayment:SendPaymentScreen,
QrScanner:QrScannerScreen,
HistoryReceive:HistoryReceiveScreen,
}
);
const AuthStack = createStackNavigator(
{
Login: LoginScreen,
Signup: SignupScreen,
ForgotPassword: ForgotPasswordScreen,
}
);
export default createAppContainer(createSwitchNavigator(
{
AuthLoading: AuthLoadingScreen,
App: AppStack,
App2: AppStack2,
Auth: AuthStack,
},
{
initialRouteName: 'AuthLoading',
}
));