-
Notifications
You must be signed in to change notification settings - Fork 8
/
App.js
134 lines (125 loc) · 5.77 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
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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React, { Component } from 'react';
import { StyleSheet, SafeAreaView ,LogBox,View} from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator, TransitionPresets } from '@react-navigation/stack';
import colors from './CommonClasses/AppColor';
import NavigationRoots from './Constants/NavigationRoots';
import OnBoarding from './UI/User/OnBoarding';
import Signin from './UI/User/SignIn';
import Signup from './UI/User/SignUp';
import Verifications from './UI/User/Verification';
import ForgotPassword from './UI/User/ForgotPassword';
import bottomBar from './Component/BottomTabbar';
import CategoryList from './UI/Event/Shop/CategoryList';
import AttributesList from './UI/Event/Shop/AttributeList';
import AddressList from './UI/Event/Shop/AddressList';
import MyStore from './UI/Event/More/MyStore/MyStore';
import Profile from './UI/Event/More/EditProfile/EditProfile';
import CreateStore from './UI/Event/Shop/CreateShop';
import AddEvent from './UI/Event/More/AddEvent/AddEvent';
import Currency from './UI/Event/More/AddEvent/Currency';
import EventTimings from './UI/Event/More/AddEvent/EventTiming';
import AddVariant from './UI/Event/More/AddEvent/AddVariant';
import VariantList from './UI/Event/More/AddEvent/VariantList';
import AddVariantValue from './UI/Event/More/AddEvent/AddVariantValue';
import Filter from './UI/Event/Explore/Filter';
import Category from './UI/Event/Explore/Category';
import EventDetail from './UI/Event/EventDetail/EventDetail';
const Stack = createStackNavigator();
export default class App extends Component {
constructor(props) {
super(props);
this.state = {
loggedIn: 'false',
reload: true,
}
}
componentDidMount() {
LogBox.ignoreAllLogs(true)
}
navigationReturn = () => {
return <NavigationContainer>
<Stack.Navigator initialRouteName={NavigationRoots.BottomTabbar} screenOptions={{
headerShown: false}}>
<Stack.Screen name={NavigationRoots.OnBoardings} component={OnBoarding} />
<Stack.Screen name={NavigationRoots.SignIn} component={Signin}
options={{
title: '',
...TransitionPresets.ModalSlideFromBottomIOS,
}} />
<Stack.Screen name={NavigationRoots.BottomTabbar} component={bottomBar} />
<Stack.Screen name={NavigationRoots.SignUp} component={Signup} />
<Stack.Screen name={NavigationRoots.Verification} component={Verifications} />
<Stack.Screen name={NavigationRoots.ForgotPassword} component={ForgotPassword} />
<Stack.Screen name={NavigationRoots.Category} component={CategoryList} />
<Stack.Screen name={NavigationRoots.AttributeList} component={AttributesList} />
<Stack.Screen name={NavigationRoots.AddressList} component={AddressList} />
<Stack.Screen name={NavigationRoots.MyStore} component={MyStore} />
<Stack.Screen name={NavigationRoots.Currency} component={Currency} />
<Stack.Screen name={NavigationRoots.EventTiming} component={EventTimings} />
<Stack.Screen name={NavigationRoots.AddVariant} component={AddVariant} />
<Stack.Screen name={NavigationRoots.VariantList} component={VariantList} />
<Stack.Screen name={NavigationRoots.AddVariantValue} component={AddVariantValue} />
<Stack.Screen name={NavigationRoots.Sort} component={Category} />
<Stack.Screen name={NavigationRoots.EventDetail} component={EventDetail} />
<Stack.Screen name={NavigationRoots.Filter}component={Filter} options={{
title: '',
...TransitionPresets.ModalSlideFromBottomIOS,
}}/>
<Stack.Screen name={NavigationRoots.Profile}component={Profile} options={{
title: '',
...TransitionPresets.ModalSlideFromBottomIOS,
}}/>
<Stack.Screen name={NavigationRoots.CreateStore} component={CreateStore} options={{
title: '',
...TransitionPresets.ModalSlideFromBottomIOS,
}} />
<Stack.Screen name={NavigationRoots.AddEvent} component={AddEvent} options={{
title: '',
...TransitionPresets.ModalSlideFromBottomIOS,
}} />
{/* <Stack.Screen name={NavigationRoots.BottomTabbar} component={bottomTabBar}/>
<Stack.Screen name={NavigationRoots.VerifyPhoneNo}component={VerifyPhone} />
<Stack.Screen name={NavigationRoots.PhoneVerification}component={PhoneVerifications} />
<Stack.Screen name={NavigationRoots.Target}component={Target} />
<Stack.Screen name={NavigationRoots.SetTarget}component={SetTarget} />
<Stack.Screen name={NavigationRoots.CollectionHistory}component={CollectionHistory} />
<Stack.Screen name={NavigationRoots.AddRecycleItem}component={AddRecycleItems} />
<Stack.Screen name={NavigationRoots.RecycleGuide}component={RecycleGuides} />
<Stack.Screen name={NavigationRoots.ApplyGroup}component={ApplyGroups} />
<Stack.Screen name={NavigationRoots.InviteFriends}component={InviteFriends} />
<Stack.Screen name={NavigationRoots.AddBinMap}component={AddBinMaps} />
<Stack.Screen name={NavigationRoots.Notifications}component={Notifications} /> */}
</Stack.Navigator>
</NavigationContainer>
}
render() {
if (this.state.reload == false) {
return <SafeAreaView style={styles.container}></SafeAreaView>
} else {
return (<View style={styles.navigationContainer}>
<this.navigationReturn />
</View>
);
}
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor:colors.AppTheme,
alignItems: 'center',
justifyContent: 'center',
},
navigationContainer: {
flex: 1,
backgroundColor:colors.AppTheme,
},
});