-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
63 lines (61 loc) · 1.81 KB
/
Copy pathApp.js
File metadata and controls
63 lines (61 loc) · 1.81 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
import 'react-native-gesture-handler';
import * as React from 'react';
import {SafeAreaView, StyleSheet, Button} from 'react-native';
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
import StartScreen from './src/screens/StartScreen';
import SignUpScreen from './src/screens/SignUpScreen';
import FontAwesome5Icon from 'react-native-vector-icons/FontAwesome5';
import SignInScreen from './src/screens/LoginScreen';
const Stack = createStackNavigator();
const App = () => {
return (
<SafeAreaView style={styles.app}>
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="startScreen"
component={StartScreen}
options={{headerShown: false}}
/>
<Stack.Screen
name="SignUpEmail"
component={SignUpScreen}
options={{
title: 'Sign Up',
headerTitleAlign: 'center',
headerBackImage: () => (
<FontAwesome5Icon
name="times"
title="Info"
color="black"
size={15}
/>
),
}}
/>
<Stack.Screen
name="Login In"
component={SignInScreen}
options={{
title: 'Login',
headerTitleAlign: 'center',
headerBackImage: () => (
<FontAwesome5Icon
name="times"
title="Info"
color="black"
size={15}
/>
),
}}
/>
</Stack.Navigator>
</NavigationContainer>
</SafeAreaView>
);
};
const styles = StyleSheet.create({
app: {flex: 1},
});
export default App;