-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.tsx
96 lines (89 loc) · 2.31 KB
/
App.tsx
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
import React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import {
Text,
View,
StyleSheet,
Button,
Alert,
TouchableOpacity,
} from 'react-native';
import QuestionScreen from './src/QuestionScreen';
import Login from './src/Login';
import UserProfile from './src/UserProfile';
import HomeTabScreen from './component/BottomTabNavigation';
import JournalHistory from './src/JournalHistory';
const Stack = createStackNavigator();
type BottomTabParamList = {
Home: undefined;
Account: undefined;
};
const Tab = createBottomTabNavigator<BottomTabParamList>();
function App(): JSX.Element {
// const handlePress = buttonName => {
// Alert.alert(`You pressed the ${buttonName} button`);
// };
return (
<SafeAreaProvider>
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="Login"
component={Login}
options={{
headerShown: false,
}}
/>
<Stack.Screen
name="HomeTabScreen"
component={HomeTabScreen}
options={{
headerShown: false,
}}
/>
<Stack.Screen
name="QuestionScreen"
component={QuestionScreen}
options={{
headerShown: false,
}}
/>
<Stack.Screen
name="JournalHistory"
component={JournalHistory}
options={{
headerShown: false,
}}
/>
</Stack.Navigator>
</NavigationContainer>
</SafeAreaProvider>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
paddingHorizontal: 20,
},
questionText: {
fontSize: 18,
color: '#555',
marginTop: 100,
textAlign: 'center',
},
buttonContainer: {
flexDirection: 'column',
alignItems: 'center',
marginTop: 20,
},
buttonSpacing: {
marginBottom: 20, // Increased spacing between buttons
borderRadius: 30, // Increased border radius for rounded corners
},
});
export default App;