-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
65 lines (36 loc) · 2.09 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
57
58
59
60
61
62
63
64
65
import React from 'react';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import SettingsPage from './Components/SettingsPage';
import TextingPage from './Components/TextingPage';
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
//import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import HomePage from './Components/HomePage';
import LoginScreen from './Components/LoginScreen';
import RegisterScreenMentor from './Components/RegisterScreenMentor';
import RegisterScreenMentee from './Components/RegisterScreenMentee';//sdasdsa
const Stack = createNativeStackNavigator();
const Tab=createBottomTabNavigator();
export default function App() {
return(
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen options={{headerShown: false}} name="Login" component={LoginScreen} />
<Stack.Screen options={{headerShown: false}} name="RegisterMentee" component={RegisterScreenMentee} />
<Stack.Screen options={{headerShown: false}} name="RegisterMentor" component={RegisterScreenMentor} />
<Stack.Screen name="Home" component={SettingsPage} />
{/* THE ABOVE CHANGE TO HOMEPAGE FROM SETTINGPAGE WHEN NAV IS COMPLETE */}
</Stack.Navigator>
</NavigationContainer>
)
}
function MyTabs(){
return(
<Tab.Navigator screenOptions={{tabBarShowLabel:false}}>
<Tab.Screen tabBarShowLabel={false} name="Home" options={{tabBarIcon:(color,size)=>(<MaterialCommunityIcons name='home' color={color} size={32} />)}} component={HomePage}></Tab.Screen>
<Tab.Screen name="Texting" options={{tabBarIcon:(color,size)=>(<MaterialCommunityIcons name='comment-text' color={color} size={24} />),}} component={TextingPage}></Tab.Screen>
<Tab.Screen name="Setting" options={{tabBarIcon:(color,size)=>(<MaterialCommunityIcons name='cog' color={color} size={24} />),}} component={SettingsPage}></Tab.Screen>
</Tab.Navigator>
)
}