This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { View, Text, StyleSheet, Dimensions, FlatList, ScrollView, TouchableOpacity } from 'react-native'; | |
import firebase from "react-native-firebase"; | |
import Icon from 'react-native-vector-icons/Ionicons'; | |
import { SharedElement } from 'react-native-motion'; | |
const { width } = Dimensions.get("window") | |
// create a component |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { View, Text, StyleSheet, Dimensions, FlatList, ScrollView, TouchableOpacity } from 'react-native'; | |
import firebase from "react-native-firebase"; | |
import Icon from 'react-native-vector-icons/Ionicons'; | |
import { SharedElement } from 'react-native-motion'; | |
const { width } = Dimensions.get("window") | |
// create a component |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here The Root Route for whole app | |
import React, { Component } from "react"; | |
import { View, TouchableOpacity } from "react-native"; | |
import { | |
createDrawerNavigator, | |
createStackNavigator, | |
createAppContainer, | |
DrawerActions, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this screen contain the Tabs (AcceptedOrders,CompletedOrders) | |
https://i.stack.imgur.com/eHoZC.jpg | |
import React, { Component } from "react"; | |
import { createAppContainer, createStackNavigator } from "react-navigation"; | |
import NavTabs from "../screens/NavTabs"; | |
// import NavOrderDetails from "../screens/NavOrderDetails"; | |
import OrderDetails from "../screens/OrderDetails"; | |
import { View } from "react-native"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { View, Text, StyleSheet, Alert, ScrollView, Dimensions, TouchableOpacity, Platform, Linking } from 'react-native'; | |
import Icon from 'react-native-vector-icons/Ionicons'; | |
import firebase from "react-native-firebase"; | |
import { withNavigation } from 'react-navigation'; | |
import MapView, { Marker } from 'react-native-maps'; | |
const { width } = Dimensions.get("window") | |
const { height } = Dimensions.get("window") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here is a one of the Two Tabs | |
import React, { Component } from "react"; | |
import { | |
View, | |
Text, | |
StyleSheet, | |
Dimensions, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
import { createAppContainer, createStackNavigator } from "react-navigation"; | |
import NavTabs from "../screens/NavTabs"; | |
import { View } from "react-native"; | |
import OrderDetails from "../screens/OrderDetails"; | |
export default class Orders extends Component { | |
render() { | |
return <MyOrdersScreen />; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyOrders top part | |
const OrdersStack = createStackNavigator({ | |
Orders: { | |
screen: Orders, | |
navigationOptions: ({ navigation }) => ({ | |
headerLeft: ( | |
// <TouchableOpacity onPress={() => navigation.dispatch(DrawerActions.toggleDrawer())}> | |
<TouchableOpacity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
import { View, TouchableOpacity } from "react-native"; | |
import { | |
createDrawerNavigator, | |
createStackNavigator, | |
createAppContainer, | |
DrawerActions, | |
createSwitchNavigator | |
} from "react-navigation"; | |
import Icon from "react-native-vector-icons/Ionicons"; |
OlderNewer