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

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