import React from 'react'; import { View, Text } from 'react-native'; import { useNavigation, useRoute, RouteProp } from '@react-navigation/native'; import { StackNavigationProp } from '@react-navigation/stack'; import { getStyles } from './liveTrackingScreen.styles'; import { Header, PrimaryButton } from '@components'; import { useAppTheme } from '@theme'; import { AppStackParamList } from '../../../navigation/appStack'; type LiveTrackingNavProp = StackNavigationProp; type LiveTrackingRouteProp = RouteProp; export const LiveTrackingScreen: React.FC = () => { const { colors } = useAppTheme(); const styles = getStyles(colors); const navigation = useNavigation(); const route = useRoute(); const orderId = route.params?.orderId || 'ORD-123456'; return (
navigation.goBack()} /> 🗺️ Live Map Delivery partner location tracking for {orderId} ● Live navigation.navigate('OrderDeliveredScreen', { orderId })} style={{ marginBottom: 16 }} /> Rahul Sharma ⭐ 4.8 KA-01-AB-1234 • Honda Activa {}} style={{ flex: 1, marginRight: 8 }} /> {}} style={{ flex: 1, marginLeft: 8 }} /> ); };