-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
133 lines (123 loc) · 3.78 KB
/
Copy pathApp.js
File metadata and controls
133 lines (123 loc) · 3.78 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
import React from 'react';
import {
SafeAreaView,
StatusBar,
LogBox,
} from 'react-native';
import { NavigationContainer } from "@react-navigation/native";
import { createStackNavigator } from "@react-navigation/stack";
import MyProfileScreen from './src/screens/MyProfile';
import FindFriendsComponent from './src/components/FindFriends';
import FindFriendsScreen from './src/screens/FindFriends';
import SettingsScreen from './src/screens/Settings';
import LoginScreen from './src/screens/Login';
import SignUpScreen from './src/screens/SignUp';
import HomeScreen from './src/screens/Home';
import LeaderboardScreen from './src/screens/Leaderboard';
import AchievementsScreen from './src/screens/Achievements';
import SplitBillScreen from './src/screens/SplitBill';
import TransactionsScreen from './src/screens/Transactions';
import TransactionComponent from './src/components/Transaction';
import SplitBillComponent from './src/components/SplitBill';
LogBox.ignoreLogs(["Possible Unhandled Promise Rejection", "An effect function must not return anything",
"Internal React error: Attempted to capture a commit phase", "Failed prop type: Invalid prop `value` of",
"Can't perform a React state update on an unmounted"])
const Stack = createStackNavigator();
const App: () => React$Node = () => {
return (
<>
{/* <StatusBar barStyle="dark-content" /> */}
{/* <SafeAreaView> */}
{/* <MyProfileScreen /> */}
{/* <FindFriendsScreen /> */}
{/* <CreateAccount /> */}
{/* <LogIn /> */}
{/* <SettingsScreen /> */}
{/* <HomeScreen /> */}
{/* <Router /> */}
{/* <LeaderboardScreen /> */}
{/* <AchievementsScreen /> */}
{/* <TransactionsScreen /> */}
{/* <TransactionComponent /> */}
{/* <SplitBillComponent /> */}
{/* <SplitBillScreen /> */}
{/* </SafeAreaView> */}
{/* <Router /> */}
<NavigationContainer>
<Stack.Navigator initialRouteName="Sign Up">
<Stack.Screen
name={"Sign Up"}
component={SignUpScreen}
options={{
headerShown: false,
}}
/>
<Stack.Screen
name={"Login"}
component={LoginScreen}
options={{
headerShown: false,
}}
/>
<Stack.Screen
name={"Home"}
component={HomeScreen}
options={{
headerShown: false,
}}
/>
<Stack.Screen
name={"Split Bill"}
component={SplitBillScreen}
options={{
headerShown: false,
}}
/>
<Stack.Screen
name={"Find Friends"}
component={FindFriendsScreen}
options={{
headerShown: false,
}}
/>
<Stack.Screen
name={"Leaderboard"}
component={LeaderboardScreen}
options={{
headerShown: false,
}}
/>
<Stack.Screen
name={"Profile"}
component={MyProfileScreen}
options={{
headerShown: false,
}}
/>
<Stack.Screen
name={"Settings"}
component={SettingsScreen}
options={{
headerShown: false,
}}
/>
<Stack.Screen
name={"Achievements"}
component={AchievementsScreen}
options={{
headerShown: false,
}}
/>
<Stack.Screen
name={"Transactions"}
component={TransactionsScreen}
options={{
headerShown: false,
}}
/>
</Stack.Navigator>
</NavigationContainer>
</>
);
};
export default App;