Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

255 righe
9.5 KiB

  1. import React, { Fragment } from "react";
  2. import { createStackNavigator } from "@react-navigation/stack";
  3. import { NavigationContainer } from "@react-navigation/native";
  4. import { fromRight } from "react-navigation-transitions";
  5. import Icon from "react-native-vector-icons/Ionicons";
  6. import * as colors from "./src/assets/css/Colors";
  7. import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
  8. import {
  9. View,
  10. StyleSheet,
  11. Text,
  12. TextInput,
  13. ScrollView,
  14. Image,
  15. BackHandler,
  16. Keyboard,
  17. TouchableOpacity,
  18. Picker,
  19. } from "react-native";
  20. /* Screens */
  21. import Splash from "./src/views/Splash";
  22. import Home from "./src/views/Home";
  23. import Pharmacy from "./src/views/Pharmacy";
  24. import EditProduct from "./src/views/EditProduct";
  25. import Call from "./src/views/Call";
  26. import VideoCall from "./src/views/VideoCall";
  27. import VendorDetails from "./src/views/VendorDetails";
  28. import LocationSearch from "./src/views/LocationSearch";
  29. import SubCategory from "./src/views/SubCategory";
  30. import Product from "./src/views/Product";
  31. import Category from "./src/views/Category";
  32. import DoctorSubCategories from "./src/views/DoctorSubCategories";
  33. import ProductDetails from "./src/views/ProductDetails";
  34. import Promo from "./src/views/Promo";
  35. import MyOrders from "./src/views/MyOrders";
  36. import OrderDetails from "./src/views/OrderDetails";
  37. import Cart from "./src/views/Cart";
  38. import Profile from "./src/views/Profile";
  39. import More from "./src/views/More";
  40. import Prescription from "./src/views/Prescription";
  41. import AddPrescription from "./src/views/AddPrescription";
  42. import ViewPrescription from "./src/views/ViewPrescription";
  43. import Address from "./src/views/Address";
  44. import AddressList from "./src/views/AddressList";
  45. import Payment from "./src/views/Payment";
  46. import Login from "./src/views/Login";
  47. import Register from "./src/views/Register";
  48. import Faq from "./src/views/Faq";
  49. import FaqDetails from "./src/views/FaqDetails";
  50. import PrivacyPolicy from "./src/views/PrivacyPolicy";
  51. import Forgot from "./src/views/Forgot";
  52. import Otp from "./src/views/Otp";
  53. import Rating from "./src/views/Rating";
  54. import Reset from "./src/views/Reset";
  55. import ContactUs from "./src/views/ContactUs";
  56. import Logout from "./src/views/Logout";
  57. import Search from "./src/views/Search";
  58. import Wallet from "./src/views/Wallet";
  59. import DoctorList from "./src/views/DoctorList";
  60. import DoctorDetail from "./src/views/DoctorDetail";
  61. import AppointmentDetail from "./src/views/AppointmentDetail";
  62. import CreateAppointment from "./src/views/CreateAppointment";
  63. import MyBookingDetails from "./src/views/MyBookingDetails";
  64. import Chat from "./src/views/Chat";
  65. import DoctorMap from "./src/views/DoctorMap";
  66. import home from "./src/assets/icons/home.png";
  67. import file from "./src/assets/icons/file.png";
  68. import list from "./src/assets/icons/list.png";
  69. import bag from "./src/assets/icons/bag.png";
  70. import DoctorSymptoms from "./src/views/DoctorSymptoms";
  71. import PharmacyDetail from "./src/views/PharmacyDetail";
  72. import PrescriptionUpload from "./src/views/PrescriptionUpload";
  73. import Success from "./src/views/Success";
  74. import WalletAdd from "./src/views/WalletAdd";
  75. import AddressMap from "./src/views/AddressMap";
  76. import AddressEnter from "./src/views/AddressEnter";
  77. import homeI from './src/assets/icons/icons/baseline_home_white_24dp.png'
  78. import pharm from './src/assets/icons/icons/baseline_medical_services_white_24dp.png'
  79. import orderI from './src/assets/icons/icons/baseline_toc_white_24dp.png'
  80. import presI from './src/assets/icons/icons/baseline_description_white_24dp.png'
  81. import moreI from './src/assets/icons/icons/baseline_more_horiz_white_24dp.png'
  82. import AppointmentPayment from "./src/views/AppointmentPayment";
  83. const Stack = createStackNavigator();
  84. const Tab = createBottomTabNavigator();
  85. function MyTabs() {
  86. return (
  87. <Tab.Navigator
  88. initialRouteName="Home"
  89. tabBarOptions={{
  90. activeTintColor: "#FFFFFF",
  91. inactiveTintColor: "#bfbfbf",
  92. labelStyle: { fontFamily: "GoogleSans-Medium" },
  93. style: {
  94. backgroundColor: colors.theme_bg_dark,
  95. fontFamily: "GoogleSans-Medium",
  96. },
  97. }}
  98. >
  99. <Tab.Screen
  100. name="Home"
  101. component={Home}
  102. options={{
  103. tabBarLabel: "Home",
  104. tabBarIcon: ({ color, size }) => (
  105. // <Icon name="ios-home"
  106. // color={color} size={size} />
  107. <Image
  108. style={{ width: 25
  109. ,
  110. height: 25,marginTop:3}}
  111. source={homeI}
  112. />
  113. ),
  114. }}
  115. />
  116. <Tab.Screen
  117. name="Pharmacy"
  118. component={Pharmacy}
  119. options={{
  120. tabBarLabel: "Pharmacy",
  121. tabBarIcon: ({ color, size }) => (
  122. // <Icon name="ios-medkit" color={color} size={size} />
  123. <Image
  124. style={{ width: 25
  125. ,
  126. height: 25,marginTop:3}}
  127. source={pharm}
  128. />
  129. ),
  130. }}
  131. />
  132. <Tab.Screen
  133. name="MyOrders"
  134. component={MyOrders}
  135. options={{
  136. tabBarLabel: "MyOrders",
  137. tabBarIcon: ({ color, size }) => (
  138. // <Icon name="ios-list" color={color} size={size} />
  139. <Image
  140. style={{ width: 25
  141. ,
  142. height: 30,marginTop:3}}
  143. source={orderI}
  144. />
  145. ),
  146. }}
  147. />
  148. <Tab.Screen
  149. name="Prescription"
  150. component={Prescription}
  151. options={{
  152. tabBarLabel: "Prescription",
  153. tabBarIcon: ({ color, size }) => (
  154. // <Icon name="ios-document" color={color} size={size} />
  155. <Image
  156. style={{ width: 25
  157. ,
  158. height: 25,marginTop:3}}
  159. source={presI}
  160. />
  161. ),
  162. }}
  163. />
  164. <Tab.Screen
  165. name="More"
  166. component={More}
  167. options={{
  168. tabBarLabel: "More",
  169. tabBarIcon: ({ color, size }) => (
  170. <Image
  171. style={{ width: 25
  172. ,
  173. height: 25,marginTop:3}}
  174. source={moreI}
  175. />
  176. ),
  177. }}
  178. />
  179. </Tab.Navigator>
  180. );
  181. }
  182. function App() {
  183. return (
  184. <NavigationContainer>
  185. <Stack.Navigator headerMode="none" initialRouteName="Splash">
  186. <Stack.Screen name="DoctorMap" component={DoctorMap} />
  187. <Stack.Screen name="AddPrescription" component={AddPrescription} />
  188. <Stack.Screen name="Address" component={Address} />
  189. <Stack.Screen name="AddressList" component={AddressList} />
  190. <Stack.Screen name="LocationSearch" component={LocationSearch} />
  191. <Stack.Screen name="MyBookingDetails" component={MyBookingDetails} />
  192. <Stack.Screen name="ContactUs" component={ContactUs} />
  193. <Stack.Screen name="Faq" component={Faq} />
  194. <Stack.Screen name="EditProduct" component={EditProduct} />
  195. <Stack.Screen name="Cart" component={Cart} />
  196. <Stack.Screen name="Chat" component={Chat} />
  197. <Stack.Screen name="Call" component={Call} />
  198. <Stack.Screen name="VideoCall" component={VideoCall} />
  199. <Stack.Screen name="FaqDetails" component={FaqDetails} />
  200. <Stack.Screen name="Forgot" component={Forgot} />
  201. <Stack.Screen name="Rating" component={Rating} />
  202. <Stack.Screen name="Home" component={MyTabs} />
  203. <Stack.Screen name="Login" component={Login} />
  204. <Stack.Screen name="Logout" component={Logout} />
  205. <Stack.Screen name="OrderDetails" component={OrderDetails} />
  206. <Stack.Screen name="Otp" component={Otp} />
  207. <Stack.Screen name="Payment" component={Payment} />
  208. <Stack.Screen name="PrivacyPolicy" component={PrivacyPolicy} />
  209. <Stack.Screen name="Product" component={Product} />
  210. <Stack.Screen name="ProductDetails" component={ProductDetails} />
  211. <Stack.Screen name="Promo" component={Promo} />
  212. <Stack.Screen name="Register" component={Register} />
  213. <Stack.Screen name="Reset" component={Reset} />
  214. <Stack.Screen name="Splash" component={Splash} />
  215. <Stack.Screen name="Wallet" component={Wallet} />
  216. <Stack.Screen name="SubCategory" component={SubCategory} />
  217. <Stack.Screen name="ViewPrescription" component={ViewPrescription} />
  218. <Stack.Screen name="Profile" component={Profile} />
  219. <Stack.Screen name="Category" component={Category} />
  220. <Stack.Screen name="VendorDetails" component={VendorDetails} />
  221. <Stack.Screen name="Search" component={Search} />
  222. <Stack.Screen name="DoctorList" component={DoctorList} />
  223. <Stack.Screen name="DoctorSymptoms" component={DoctorSymptoms} />
  224. <Stack.Screen name="PharmacyDetail" component={PharmacyDetail} />
  225. <Stack.Screen name="DoctorDetail" component={DoctorDetail} />
  226. <Stack.Screen name="AppointmentDetail" component={AppointmentDetail} />
  227. <Stack.Screen name="CreateAppointment" component={CreateAppointment} />
  228. <Stack.Screen name="PrescriptionUpload" component={PrescriptionUpload} />
  229. <Stack.Screen name="Success" component={Success} />
  230. <Stack.Screen name="AddressMap" component={AddressMap} />
  231. <Stack.Screen name="WalletAdd" component={WalletAdd} />
  232. <Stack.Screen name="DoctorSubCategories"
  233. component={DoctorSubCategories}
  234. />
  235. <Stack.Screen name="AppointmentPayment"
  236. component={AppointmentPayment}
  237. />
  238. <Stack.Screen name="AddressEnter"
  239. component={AddressEnter}
  240. />
  241. </Stack.Navigator>
  242. </NavigationContainer>
  243. );
  244. }
  245. export default App;