選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

App.js 8.7 KiB

3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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 more from "./src/assets/icons/more.png";
  68. import file from "./src/assets/icons/file.png";
  69. import list from "./src/assets/icons/list.png";
  70. import bag from "./src/assets/icons/bag.png";
  71. import DoctorSymptoms from "./src/views/DoctorSymptoms";
  72. import PharmacyDetail from "./src/views/PharmacyDetail";
  73. import PrescriptionUpload from "./src/views/PrescriptionUpload";
  74. const Stack = createStackNavigator();
  75. const Tab = createBottomTabNavigator();
  76. function MyTabs() {
  77. return (
  78. <Tab.Navigator
  79. initialRouteName="Home"
  80. tabBarOptions={{
  81. activeTintColor: "#FFFFFF",
  82. inactiveTintColor: "#bfbfbf",
  83. labelStyle: { fontFamily: "GoogleSans-Medium" },
  84. style: {
  85. backgroundColor: colors.theme_bg_dark,
  86. fontFamily: "GoogleSans-Medium",
  87. },
  88. }}
  89. >
  90. <Tab.Screen
  91. name="Home"
  92. component={Home}
  93. options={{
  94. tabBarLabel: "Home",
  95. tabBarIcon: ({ color, size }) => (
  96. // <Icon name="ios-home"
  97. // color={color} size={size} />
  98. <Image
  99. style={{ width: 20
  100. ,
  101. height: 20,backgroundColor:'white'}}
  102. source={home}
  103. />
  104. ),
  105. }}
  106. />
  107. <Tab.Screen
  108. name="Pharmacy"
  109. component={Pharmacy}
  110. options={{
  111. tabBarLabel: "Pharmacy",
  112. tabBarIcon: ({ color, size }) => (
  113. // <Icon name="ios-medkit" color={color} size={size} />
  114. <Image
  115. style={{ width: 20
  116. ,
  117. height: 20,backgroundColor:'white'}}
  118. source={bag}
  119. />
  120. ),
  121. }}
  122. />
  123. <Tab.Screen
  124. name="MyOrders"
  125. component={MyOrders}
  126. options={{
  127. tabBarLabel: "MyOrders",
  128. tabBarIcon: ({ color, size }) => (
  129. // <Icon name="ios-list" color={color} size={size} />
  130. <Image
  131. style={{ width: 20
  132. ,
  133. height: 20,backgroundColor:'white'}}
  134. source={list}
  135. />
  136. ),
  137. }}
  138. />
  139. <Tab.Screen
  140. name="Prescription"
  141. component={Prescription}
  142. options={{
  143. tabBarLabel: "Prescription",
  144. tabBarIcon: ({ color, size }) => (
  145. // <Icon name="ios-document" color={color} size={size} />
  146. <Image
  147. style={{ width: 20
  148. ,
  149. height: 20,backgroundColor:'white'}}
  150. source={file}
  151. />
  152. ),
  153. }}
  154. />
  155. <Tab.Screen
  156. name="More"
  157. component={More}
  158. options={{
  159. tabBarLabel: "More",
  160. tabBarIcon: ({ color, size }) => (
  161. // <Icon name="ios-more" color={color} size={size} />
  162. <Image
  163. style={{ width: 20
  164. ,
  165. height: 20,backgroundColor:'white'}}
  166. source={more}
  167. />
  168. ),
  169. }}
  170. />
  171. </Tab.Navigator>
  172. );
  173. }
  174. function App() {
  175. return (
  176. <NavigationContainer>
  177. <Stack.Navigator headerMode="none" initialRouteName="Splash">
  178. <Stack.Screen name="DoctorMap" component={DoctorMap} />
  179. <Stack.Screen name="AddPrescription" component={AddPrescription} />
  180. <Stack.Screen name="Address" component={Address} />
  181. <Stack.Screen name="AddressList" component={AddressList} />
  182. <Stack.Screen name="LocationSearch" component={LocationSearch} />
  183. <Stack.Screen name="MyBookingDetails" component={MyBookingDetails} />
  184. <Stack.Screen name="ContactUs" component={ContactUs} />
  185. <Stack.Screen name="Faq" component={Faq} />
  186. <Stack.Screen name="EditProduct" component={EditProduct} />
  187. <Stack.Screen name="Cart" component={Cart} />
  188. <Stack.Screen name="Chat" component={Chat} />
  189. <Stack.Screen name="Call" component={Call} />
  190. <Stack.Screen name="VideoCall" component={VideoCall} />
  191. <Stack.Screen name="FaqDetails" component={FaqDetails} />
  192. <Stack.Screen name="Forgot" component={Forgot} />
  193. <Stack.Screen name="Rating" component={Rating} />
  194. <Stack.Screen name="Home" component={MyTabs} />
  195. <Stack.Screen name="Login" component={Login} />
  196. <Stack.Screen name="Logout" component={Logout} />
  197. <Stack.Screen name="OrderDetails" component={OrderDetails} />
  198. <Stack.Screen name="Otp" component={Otp} />
  199. <Stack.Screen name="Payment" component={Payment} />
  200. <Stack.Screen name="PrivacyPolicy" component={PrivacyPolicy} />
  201. <Stack.Screen name="Product" component={Product} />
  202. <Stack.Screen name="ProductDetails" component={ProductDetails} />
  203. <Stack.Screen name="Promo" component={Promo} />
  204. <Stack.Screen name="Register" component={Register} />
  205. <Stack.Screen name="Reset" component={Reset} />
  206. <Stack.Screen name="Splash" component={Splash} />
  207. <Stack.Screen name="Wallet" component={Wallet} />
  208. <Stack.Screen name="SubCategory" component={SubCategory} />
  209. <Stack.Screen name="ViewPrescription" component={ViewPrescription} />
  210. <Stack.Screen name="Profile" component={Profile} />
  211. <Stack.Screen name="Category" component={Category} />
  212. <Stack.Screen name="VendorDetails" component={VendorDetails} />
  213. <Stack.Screen name="Search" component={Search} />
  214. <Stack.Screen name="DoctorList" component={DoctorList} />
  215. <Stack.Screen name="DoctorSymptoms" component={DoctorSymptoms} />
  216. <Stack.Screen name="PharmacyDetail" component={PharmacyDetail} />
  217. <Stack.Screen name="DoctorDetail" component={DoctorDetail} />
  218. <Stack.Screen name="AppointmentDetail" component={AppointmentDetail} />
  219. <Stack.Screen name="CreateAppointment" component={CreateAppointment} />
  220. <Stack.Screen name="PrescriptionUpload" component={PrescriptionUpload} />
  221. <Stack.Screen
  222. name="DoctorSubCategories"
  223. component={DoctorSubCategories}
  224. />
  225. </Stack.Navigator>
  226. </NavigationContainer>
  227. );
  228. }
  229. export default App;