-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
145 lines (132 loc) · 3.86 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
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
134
135
136
137
138
139
140
141
142
143
144
145
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/
import { View, Text } from 'react-native';
import React from 'react';
import 'react-native-gesture-handler';
import {Login} from './src/Screens/Login/login';
import Header from './src/component/Header/header';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator} from '@react-navigation/native-stack';
import { SignUp } from './src/Screens/SignUp/SignUp';
import { Home } from './src/Screens/Home/home';
import AddEvent from './src/Screens/AddEvent/AddEvent';
import { Participants } from './src/Screens/Participants/participants';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { ImageUpload } from './src/component/ImageUpload';
import { AddParticipants } from './src/Screens/AddParticipants';
import { events } from './src/Screens/Event/Events';
import {EventComponent} from './src/Screens/Event/EventComponent';
import Feather from 'react-native-vector-icons/Feather'
import SimpleLineIcons from 'react-native-vector-icons/SimpleLineIcons'
import MaterialIconsfrom from 'react-native-vector-icons/MaterialIcons'
import { Members } from './src/Screens/Members/Members';
const Tab = createBottomTabNavigator()
const Stack = createNativeStackNavigator()
const AllScreens = () =>{
return (
<Stack.Navigator initialRouteName='Home'>
<Stack.Screen name='Home' options={{headerShown:false}} component={Home}/>
<Stack.Screen name='AddEvent' options={{headerShown:false}} component={AddEvent}/>
<Stack.Screen name='Participants' options={{headerShown:false}} component={Participants}/>
</Stack.Navigator>
)
}
const Tabs = () =>{
return(
<Tab.Navigator
screenOptions={{
headerStyle:{
backgroundColor:'#fff',
},
headerTintColor:"#fff",
headerTitleStyle:{
fontWeight:'bold'
},
}}
initialRouteName="FirstScreen">
<Tab.Screen name='FirstScreen'
options={{
tabBarIcon:({focused}) =>(
<View>
<Feather
name='home'
size={25}
color={focused? '#8ac3ee' : '#d9d9d9'}
/>
</View>
),
headerShown:false
}}
component={AllScreens} />
<Tab.Screen name='AddEvent'
options={{
tabBarIcon:({focused}) =>(
<View>
<MaterialIconsfrom
name='assignment-add'
size={25}
color={focused? '#8ac3ee' : '#d9d9d9'}
/>
</View>
),
headerShown:false
}}
component={AddEvent}/>
<Tab.Screen name='Members'
options={{
tabBarIcon:({focused}) =>(
<View>
<MaterialIconsfrom
name='person-add'
size={25}
color={focused? '#8ac3ee' : '#d9d9d9'}
/>
</View>
),
headerShown:false
}}
component={Members}/>
<Tab.Screen name='Events'
options={{
tabBarIcon:({focused}) =>(
<View>
<MaterialIconsfrom
name='event-available'
size={25}
color={focused? '#8ac3ee' : '#d9d9d9'}
/>
</View>
),
headerShown:false
}}
component={EventComponent}/>
</Tab.Navigator>
)
}
function App(): JSX.Element {
return (
<NavigationContainer>
<Stack.Navigator
screenOptions={{
headerStyle:{
backgroundColor:'#fff',
},
headerTintColor:"#fff",
headerTitleStyle:{
fontWeight:'bold'
},
headerShown:false
}}
initialRouteName="TabScreens">
{/* <Stack.Screen name='Login' options={{headerShown:false}} component={Login}/>
<Stack.Screen name='SignUp' options={{headerShown:false}} component={SignUp}/> */}
<Stack.Screen name='TabScreens' options={{headerShown:false}} component={Tabs}/>
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;