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

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