-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
51 lines (44 loc) · 1.24 KB
/
App.js
File metadata and controls
51 lines (44 loc) · 1.24 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
import React from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,
Text,
StatusBar,
} from 'react-native';
import {
Header,
LearnMoreLinks,
Colors,
DebugInstructions,
ReloadInstructions,
} from 'react-native/Libraries/NewAppScreen';
import 'react-native-gesture-handler';
import Home from './src/Pages/Home.js';
import HaveAccount from './src/Pages/HaveAccount.js';
import CreateAccount from './src/Pages/CreateAccount.js';
import Login from './src/Pages/Login.js'
import 'react-native-gesture-handler';
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
const Stack = createStackNavigator();
const App = () => {
return (
<>
<NavigationContainer>
<Stack.Navigator
initialRouteName="HaveAccount"
screenOptions={{
headerShown: false,
}}>
<Stack.Screen name="HaveAccount" component={HaveAccount} />
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="CreateAccount" component={CreateAccount} />
<Stack.Screen name="Login" component={Login} />
</Stack.Navigator>
</NavigationContainer>
</>
);
};
export default App;