|
- import React, { Fragment } from "react";
- import { createStackNavigator } from "@react-navigation/stack";
- import { NavigationContainer } from "@react-navigation/native";
- import { fromRight } from "react-navigation-transitions";
- import Icon from "react-native-vector-icons/Ionicons";
- import * as colors from "./src/assets/css/Colors";
- import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
- import {
- View,
- StyleSheet,
- Text,
- TextInput,
- ScrollView,
- Image,
- BackHandler,
- Keyboard,
- TouchableOpacity,
- Picker,
- } from "react-native";
- /* Screens */
- import Splash from "./src/views/Splash";
- import Home from "./src/views/Home";
- import Pharmacy from "./src/views/Pharmacy";
- import EditProduct from "./src/views/EditProduct";
- import Call from "./src/views/Call";
- import VideoCall from "./src/views/VideoCall";
- import VendorDetails from "./src/views/VendorDetails";
- import LocationSearch from "./src/views/LocationSearch";
- import SubCategory from "./src/views/SubCategory";
- import Product from "./src/views/Product";
- import Category from "./src/views/Category";
- import DoctorSubCategories from "./src/views/DoctorSubCategories";
- import ProductDetails from "./src/views/ProductDetails";
- import Promo from "./src/views/Promo";
- import MyOrders from "./src/views/MyOrders";
- import OrderDetails from "./src/views/OrderDetails";
- import Cart from "./src/views/Cart";
- import Profile from "./src/views/Profile";
- import More from "./src/views/More";
- import Prescription from "./src/views/Prescription";
- import AddPrescription from "./src/views/AddPrescription";
- import ViewPrescription from "./src/views/ViewPrescription";
- import Address from "./src/views/Address";
- import AddressList from "./src/views/AddressList";
- import Payment from "./src/views/Payment";
- import Login from "./src/views/Login";
- import Register from "./src/views/Register";
- import Faq from "./src/views/Faq";
- import FaqDetails from "./src/views/FaqDetails";
- import PrivacyPolicy from "./src/views/PrivacyPolicy";
- import Forgot from "./src/views/Forgot";
- import Otp from "./src/views/Otp";
- import Rating from "./src/views/Rating";
- import Reset from "./src/views/Reset";
- import ContactUs from "./src/views/ContactUs";
- import Logout from "./src/views/Logout";
- import Search from "./src/views/Search";
- import Wallet from "./src/views/Wallet";
- import DoctorList from "./src/views/DoctorList";
- import DoctorDetail from "./src/views/DoctorDetail";
- import AppointmentDetail from "./src/views/AppointmentDetail";
- import CreateAppointment from "./src/views/CreateAppointment";
- import MyBookingDetails from "./src/views/MyBookingDetails";
- import Chat from "./src/views/Chat";
- import DoctorMap from "./src/views/DoctorMap";
- import home from "./src/assets/icons/home.png";
- import file from "./src/assets/icons/file.png";
- import list from "./src/assets/icons/list.png";
- import bag from "./src/assets/icons/bag.png";
- import DoctorSymptoms from "./src/views/DoctorSymptoms";
- import PharmacyDetail from "./src/views/PharmacyDetail";
- import PrescriptionUpload from "./src/views/PrescriptionUpload";
- import Success from "./src/views/Success";
- import WalletAdd from "./src/views/WalletAdd";
- import AddressMap from "./src/views/AddressMap";
- import AddressEnter from "./src/views/AddressEnter";
- import homeI from './src/assets/icons/icons/baseline_home_white_24dp.png'
- import pharm from './src/assets/icons/icons/baseline_medical_services_white_24dp.png'
- import orderI from './src/assets/icons/icons/baseline_toc_white_24dp.png'
- import presI from './src/assets/icons/icons/baseline_description_white_24dp.png'
- import moreI from './src/assets/icons/icons/baseline_more_horiz_white_24dp.png'
- import AppointmentPayment from "./src/views/AppointmentPayment";
- const Stack = createStackNavigator();
- const Tab = createBottomTabNavigator();
-
- function MyTabs() {
- return (
- <Tab.Navigator
- initialRouteName="Home"
- tabBarOptions={{
- activeTintColor: "#FFFFFF",
- inactiveTintColor: "#bfbfbf",
- labelStyle: { fontFamily: "GoogleSans-Medium" },
- style: {
- backgroundColor: colors.theme_bg_dark,
- fontFamily: "GoogleSans-Medium",
- },
- }}
- >
- <Tab.Screen
- name="Home"
- component={Home}
- options={{
- tabBarLabel: "Home",
- tabBarIcon: ({ color, size }) => (
- // <Icon name="ios-home"
- // color={color} size={size} />
- <Image
- style={{ width: 25
- ,
- height: 25,marginTop:3}}
- source={homeI}
-
- />
- ),
- }}
- />
- <Tab.Screen
- name="Pharmacy"
- component={Pharmacy}
- options={{
- tabBarLabel: "Pharmacy",
- tabBarIcon: ({ color, size }) => (
- // <Icon name="ios-medkit" color={color} size={size} />
- <Image
- style={{ width: 25
- ,
- height: 25,marginTop:3}}
- source={pharm}
-
- />
- ),
- }}
- />
- <Tab.Screen
- name="MyOrders"
- component={MyOrders}
- options={{
- tabBarLabel: "MyOrders",
- tabBarIcon: ({ color, size }) => (
- // <Icon name="ios-list" color={color} size={size} />
- <Image
- style={{ width: 25
- ,
- height: 30,marginTop:3}}
- source={orderI}
-
- />
-
- ),
- }}
- />
- <Tab.Screen
- name="Prescription"
- component={Prescription}
- options={{
- tabBarLabel: "Prescription",
- tabBarIcon: ({ color, size }) => (
- // <Icon name="ios-document" color={color} size={size} />
- <Image
- style={{ width: 25
- ,
- height: 25,marginTop:3}}
- source={presI}
-
- />
-
- ),
- }}
- />
- <Tab.Screen
- name="More"
- component={More}
- options={{
- tabBarLabel: "More",
- tabBarIcon: ({ color, size }) => (
- <Image
- style={{ width: 25
- ,
- height: 25,marginTop:3}}
- source={moreI}
-
- />
- ),
- }}
- />
- </Tab.Navigator>
- );
- }
-
- function App() {
- return (
- <NavigationContainer>
- <Stack.Navigator headerMode="none" initialRouteName="Splash">
- <Stack.Screen name="DoctorMap" component={DoctorMap} />
- <Stack.Screen name="AddPrescription" component={AddPrescription} />
- <Stack.Screen name="Address" component={Address} />
- <Stack.Screen name="AddressList" component={AddressList} />
- <Stack.Screen name="LocationSearch" component={LocationSearch} />
- <Stack.Screen name="MyBookingDetails" component={MyBookingDetails} />
- <Stack.Screen name="ContactUs" component={ContactUs} />
- <Stack.Screen name="Faq" component={Faq} />
- <Stack.Screen name="EditProduct" component={EditProduct} />
- <Stack.Screen name="Cart" component={Cart} />
- <Stack.Screen name="Chat" component={Chat} />
- <Stack.Screen name="Call" component={Call} />
- <Stack.Screen name="VideoCall" component={VideoCall} />
- <Stack.Screen name="FaqDetails" component={FaqDetails} />
- <Stack.Screen name="Forgot" component={Forgot} />
- <Stack.Screen name="Rating" component={Rating} />
- <Stack.Screen name="Home" component={MyTabs} />
- <Stack.Screen name="Login" component={Login} />
- <Stack.Screen name="Logout" component={Logout} />
- <Stack.Screen name="OrderDetails" component={OrderDetails} />
- <Stack.Screen name="Otp" component={Otp} />
- <Stack.Screen name="Payment" component={Payment} />
- <Stack.Screen name="PrivacyPolicy" component={PrivacyPolicy} />
- <Stack.Screen name="Product" component={Product} />
- <Stack.Screen name="ProductDetails" component={ProductDetails} />
- <Stack.Screen name="Promo" component={Promo} />
- <Stack.Screen name="Register" component={Register} />
- <Stack.Screen name="Reset" component={Reset} />
- <Stack.Screen name="Splash" component={Splash} />
- <Stack.Screen name="Wallet" component={Wallet} />
- <Stack.Screen name="SubCategory" component={SubCategory} />
- <Stack.Screen name="ViewPrescription" component={ViewPrescription} />
- <Stack.Screen name="Profile" component={Profile} />
- <Stack.Screen name="Category" component={Category} />
- <Stack.Screen name="VendorDetails" component={VendorDetails} />
- <Stack.Screen name="Search" component={Search} />
- <Stack.Screen name="DoctorList" component={DoctorList} />
- <Stack.Screen name="DoctorSymptoms" component={DoctorSymptoms} />
- <Stack.Screen name="PharmacyDetail" component={PharmacyDetail} />
- <Stack.Screen name="DoctorDetail" component={DoctorDetail} />
- <Stack.Screen name="AppointmentDetail" component={AppointmentDetail} />
- <Stack.Screen name="CreateAppointment" component={CreateAppointment} />
- <Stack.Screen name="PrescriptionUpload" component={PrescriptionUpload} />
- <Stack.Screen name="Success" component={Success} />
- <Stack.Screen name="AddressMap" component={AddressMap} />
- <Stack.Screen name="WalletAdd" component={WalletAdd} />
- <Stack.Screen name="DoctorSubCategories"
- component={DoctorSubCategories}
- />
- <Stack.Screen name="AppointmentPayment"
- component={AppointmentPayment}
- />
- <Stack.Screen name="AddressEnter"
- component={AddressEnter}
- />
- </Stack.Navigator>
- </NavigationContainer>
- );
- }
- export default App;
|