-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
184 lines (175 loc) · 4.42 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
import { Navigation } from "react-native-navigation";
import { noNavTabbarNavigation } from "./src/styles/navigatorstyle";
import { Provider } from "react-redux";
import configureStore from "./src/store/configurestore";
const store = configureStore();
import HomeScreen from "./src/components/screens/home";
import PostAdScreen from "./src/components/screens/postad";
import PostAdOneScreen from "./src/components/screens/postadone";
import PostAdTwoScreen from "./src/components/screens/postadtwo";
import AdDetailsScreen from "./src/components/screens/addetails";
import ChatsScreen from "./src/components/screens/chats/chats";
import SortFilterScreen from "./src/components/screens/filter/sortfilter";
import RealEstateFilterScreen from "./src/components/screens/filter/realestatefilter";
import AutoMobileFilterScreen from "./src/components/screens/filter/automobilefilter";
import NavBar from "./src/components/common/gradientnavbar";
import SignInScreen from "./src/components/screens/auth/signin";
import SignUpScreen from "./src/components/screens/auth/signup";
import ForgotPasswordScreen from "./src/components/screens/auth/forgotpassword";
import UserProfileScreen from "./src/components/screens/profile/userprofile";
import UserProfileSettingScreen from "./src/components/screens/profile/userprofilesettings";
import NotificationScreen from "./src/components/screens/notify/notification";
import ChatScreen from "./src/components/common/chatui";
import UserRatingScreen from "./src/components/screens/rating/userrating";
import ReportUserScreen from "./src/components/screens/rating/reportuser";
import SellingItemScreen from "./src/components/screens/userItems/sellingitems";
import FinalRatingScreen from "./src/components/screens/rating/finalrating";
Navigation.registerComponent(
"TwoFourApp.Home",
() => HomeScreen,
store,
Provider
);
Navigation.registerComponent(
"TwoFourApp.PostAd",
() => PostAdScreen,
store,
Provider
);
Navigation.registerComponent(
"TwoFourApp.PostAdOne",
() => PostAdOneScreen,
store,
Provider
);
Navigation.registerComponent(
"TwoFourApp.PostAdTwo",
() => PostAdTwoScreen,
store,
Provider
);
Navigation.registerComponent(
"TwoFourApp.AdDetails",
() => AdDetailsScreen,
store,
Provider
);
Navigation.registerComponent(
"TwoFourApp.Chats",
() => ChatsScreen,
store,
Provider
);
Navigation.registerComponent(
"TwoFourApp.SortFilter",
() => SortFilterScreen,
store,
Provider
);
Navigation.registerComponent(
"TwoFourApp.RealEstateFilter",
() => RealEstateFilterScreen,
store,
Provider
);
Navigation.registerComponent(
"TwoFourApp.AutoMobileFilter",
() => AutoMobileFilterScreen,
store,
Provider
);
Navigation.registerComponent(
"TwoFourApp.NavBar",
() => NavBar,
store,
Provider
);
Navigation.registerComponent(
"TwoFourApp.SignIn",
() => SignInScreen,
store,
Provider
);
Navigation.registerComponent(
"TwoFourApp.SignUp",
() => SignUpScreen,
store,
Provider
);
Navigation.registerComponent(
"TwoFourApp.ForgotPassword",
() => ForgotPasswordScreen,
store,
Provider
);
Navigation.registerComponent(
"TwoFourApp.UserProfile",
() => UserProfileScreen,
store,
Provider
);
Navigation.registerComponent(
"TwoFourApp.UserProfileSetting",
() => UserProfileSettingScreen,
store,
Provider
);
Navigation.registerComponent(
"TwoFourApp.Notification",
() => NotificationScreen,
store,
Provider
);
Navigation.registerComponent(
"TwoFourApp.Chat",
() => ChatScreen,
store,
Provider
);
Navigation.registerComponent(
"TwoFourApp.UserRating",
() => UserRatingScreen,
store,
Provider
);
Navigation.registerComponent(
"TwoFourApp.ReportUser",
() => ReportUserScreen,
store,
Provider
);
Navigation.registerComponent(
"TwoFourApp.SellingItem",
() => SellingItemScreen,
store,
Provider
);
Navigation.registerComponent(
"TwoFourApp.FinalRating",
() => FinalRatingScreen,
store,
Provider
);
Navigation.startSingleScreenApp({
screen: {
screen: "TwoFourApp.SignIn",
title: ""
},
appStyle: {
navBarBackgroundColor: "#345A99",
navBarTextColor: "#F1F1F2",
navBarButtonColor: "#F1F1F2",
navBarTextFontFamily: "Poppins-SemiBold"
},
animated: true,
animationType: "fade"
});
// Navigation.startTabBasedApp({
// tabs: createTabs(),
// // On Android, add BottomTabs styles to AppStyle
// appStyle: {
// orientation: 'portrait',
// tabBarHidden: true,
// },
// animationType: 'slide-down'
// });