No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

179 líneas
6.9 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. /* Screens */
  9. import Splash from './src/views/Splash';
  10. import Home from './src/views/Home';
  11. import Pharmacy from './src/views/Pharmacy';
  12. import EditProduct from './src/views/EditProduct';
  13. import Call from './src/views/Call';
  14. import VideoCall from './src/views/VideoCall';
  15. import VendorDetails from './src/views/VendorDetails';
  16. import LocationSearch from './src/views/LocationSearch';
  17. import SubCategory from './src/views/SubCategory';
  18. import Product from './src/views/Product';
  19. import Category from './src/views/Category';
  20. import DoctorSubCategories from './src/views/DoctorSubCategories';
  21. import ProductDetails from './src/views/ProductDetails';
  22. import Promo from './src/views/Promo';
  23. import MyOrders from './src/views/MyOrders';
  24. import OrderDetails from './src/views/OrderDetails';
  25. import Cart from './src/views/Cart';
  26. import Profile from './src/views/Profile';
  27. import More from './src/views/More';
  28. import Prescription from './src/views/Prescription';
  29. import AddPrescription from './src/views/AddPrescription';
  30. import ViewPrescription from './src/views/ViewPrescription';
  31. import Address from './src/views/Address';
  32. import AddressList from './src/views/AddressList';
  33. import Payment from './src/views/Payment';
  34. import Login from './src/views/Login';
  35. import Register from './src/views/Register';
  36. import Faq from './src/views/Faq';
  37. import FaqDetails from './src/views/FaqDetails';
  38. import PrivacyPolicy from './src/views/PrivacyPolicy';
  39. import Forgot from './src/views/Forgot';
  40. import Otp from './src/views/Otp';
  41. import Rating from './src/views/Rating';
  42. import Reset from './src/views/Reset';
  43. import ContactUs from './src/views/ContactUs';
  44. import Logout from './src/views/Logout';
  45. import Search from './src/views/Search';
  46. import Wallet from './src/views/Wallet';
  47. import DoctorList from './src/views/DoctorList';
  48. import DoctorDetail from './src/views/DoctorDetail';
  49. import AppointmentDetail from './src/views/AppointmentDetail';
  50. import CreateAppointment from './src/views/CreateAppointment';
  51. import MyBookingDetails from './src/views/MyBookingDetails';
  52. import Chat from './src/views/Chat';
  53. import DoctorMap from './src/views/DoctorMap';
  54. const Stack = createStackNavigator();
  55. const Tab = createBottomTabNavigator();
  56. function MyTabs() {
  57. return (
  58. <Tab.Navigator
  59. initialRouteName="Home"
  60. tabBarOptions={{
  61. activeTintColor: '#FFFFFF',
  62. inactiveTintColor: '#bfbfbf',
  63. labelStyle: { fontFamily:'GoogleSans-Medium' },
  64. style:{
  65. backgroundColor: colors.theme_bg_dark,
  66. fontFamily:'GoogleSans-Medium'
  67. }
  68. }}
  69. >
  70. <Tab.Screen
  71. name="Home"
  72. component={Home}
  73. options={{
  74. tabBarLabel: 'Home',
  75. tabBarIcon: ({ color, size }) => (
  76. <Icon name='ios-home' color={color} size={size} />
  77. ),
  78. }}
  79. />
  80. <Tab.Screen
  81. name="Pharmacy"
  82. component={Pharmacy}
  83. options={{
  84. tabBarLabel: 'Pharmacy',
  85. tabBarIcon: ({ color, size }) => (
  86. <Icon name='ios-medkit' color={color} size={size} />
  87. ),
  88. }}
  89. />
  90. <Tab.Screen
  91. name="MyOrders"
  92. component={MyOrders}
  93. options={{
  94. tabBarLabel: 'MyOrders',
  95. tabBarIcon: ({ color, size }) => (
  96. <Icon name='ios-list' color={color} size={size} />
  97. ),
  98. }}
  99. />
  100. <Tab.Screen
  101. name="Prescription"
  102. component={Prescription}
  103. options={{
  104. tabBarLabel: 'Prescription',
  105. tabBarIcon: ({ color, size }) => (
  106. <Icon name='ios-document' color={color} size={size} />
  107. ),
  108. }}
  109. />
  110. <Tab.Screen
  111. name="More"
  112. component={More}
  113. options={{
  114. tabBarLabel: 'More',
  115. tabBarIcon: ({ color, size }) => (
  116. <Icon name='ios-more' color={color} size={size} />
  117. ),
  118. }}
  119. />
  120. </Tab.Navigator>
  121. );
  122. }
  123. function App() {
  124. return (
  125. <NavigationContainer>
  126. <Stack.Navigator headerMode="none" initialRouteName="Register" >
  127. <Stack.Screen name="DoctorMap" component={DoctorMap} />
  128. <Stack.Screen name="AddPrescription" component={AddPrescription} />
  129. <Stack.Screen name="Address" component={Address} />
  130. <Stack.Screen name="AddressList" component={AddressList} />
  131. <Stack.Screen name="LocationSearch" component={LocationSearch} />
  132. <Stack.Screen name="MyBookingDetails" component={MyBookingDetails} />
  133. <Stack.Screen name="ContactUs" component={ContactUs} />
  134. <Stack.Screen name="Faq" component={Faq} />
  135. <Stack.Screen name="EditProduct" component={EditProduct} />
  136. <Stack.Screen name="Cart" component={Cart} />
  137. <Stack.Screen name="Chat" component={Chat} />
  138. <Stack.Screen name="Call" component={Call} />
  139. <Stack.Screen name="VideoCall" component={VideoCall} />
  140. <Stack.Screen name="FaqDetails" component={FaqDetails} />
  141. <Stack.Screen name="Forgot" component={Forgot} />
  142. <Stack.Screen name="Rating" component={Rating} />
  143. <Stack.Screen name="Home" component={MyTabs} />
  144. <Stack.Screen name="Login" component={Login} />
  145. <Stack.Screen name="Logout" component={Logout} />
  146. <Stack.Screen name="OrderDetails" component={OrderDetails} />
  147. <Stack.Screen name="Otp" component={Otp} />
  148. <Stack.Screen name="Payment" component={Payment} />
  149. <Stack.Screen name="PrivacyPolicy" component={PrivacyPolicy} />
  150. <Stack.Screen name="Product" component={Product} />
  151. <Stack.Screen name="ProductDetails" component={ProductDetails} />
  152. <Stack.Screen name="Promo" component={Promo} />
  153. <Stack.Screen name="Register" component={Register} />
  154. <Stack.Screen name="Reset" component={Reset} />
  155. <Stack.Screen name="Splash" component={Splash} />
  156. <Stack.Screen name="Wallet" component={Wallet} />
  157. <Stack.Screen name="SubCategory" component={SubCategory} />
  158. <Stack.Screen name="ViewPrescription" component={ViewPrescription} />
  159. <Stack.Screen name="Profile" component={Profile} />
  160. <Stack.Screen name="Category" component={Category} />
  161. <Stack.Screen name="VendorDetails" component={VendorDetails} />
  162. <Stack.Screen name="Search" component={Search} />
  163. <Stack.Screen name="DoctorList" component={DoctorList} />
  164. <Stack.Screen name="DoctorDetail" component={DoctorDetail}/>
  165. <Stack.Screen name="AppointmentDetail" component={AppointmentDetail} />
  166. <Stack.Screen name="CreateAppointment" component={CreateAppointment} />
  167. <Stack.Screen name="DoctorSubCategories" component={DoctorSubCategories} />
  168. </Stack.Navigator>
  169. </NavigationContainer>
  170. );
  171. }
  172. export default App;