-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
56 lines (43 loc) · 1.68 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
import React, { useState, createContext } from 'react';
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native'
import { createNativeStackNavigator } from '@react-navigation/native-stack'
import Login from './Screens/Login'
import Register from './Screens/Register'
import Home from './Screens/Home'
import PurchaseT from './Screens/PurchaseT'
import SellT from './Screens/SellT'
import ShopRegister from './Screens/ShopRegister';
import { AppProvider } from './Context/TokenContext';
import Forgot from './Screens/Forgot';
import TrailPeroid from './Screens/TrailPeroid';
import Test from './Screens/Test';
const Stack = new createNativeStackNavigator();
export default function App() {
return (
<AppProvider>
<NavigationContainer >
<Stack.Navigator initialRouteName="Login" screenOptions={{
headerShown: false, navigationOptions: {
headerShown: false,
}
}}>
<Stack.Screen component={Login} name="Login" />
<Stack.Screen component={Register} name="Register" />
<Stack.Screen component={ShopRegister} name="ShopRegister" />
<Stack.Screen component={Home} name="Home" />
<Stack.Screen component={Forgot} name="Forgot" />
<Stack.Screen component={PurchaseT} name="Purchase" />
<Stack.Screen component={SellT} name="Sell" />
<Stack.Screen component={TrailPeroid} name="TrailPeriod" />
<Stack.Screen component={Test} name="Test"/>
</Stack.Navigator>
</NavigationContainer>
</AppProvider>
);
}
// {
// gold: [],
// silver: []
// }