import React from 'react'; import { View, Text } from 'react-native'; import { useAppTheme } from '@theme'; import { PrimaryButton } from '@components'; import { useAppDispatch, useAppSelector } from '@store'; import { advanceJobStatus } from '@store/slices/jobSlice'; import { useNavigation } from '@react-navigation/native'; import { NativeStackNavigationProp } from '@react-navigation/native-stack'; import { AppStackParamList } from '@navigation/navigationTypes'; import { RouteNames, JobStatus } from '@utils/constants'; import { getStyles } from './orderPickedUpScreen.styles'; export const OrderPickedUpScreen: React.FC = () => { const { colors } = useAppTheme(); const styles = getStyles(colors); const dispatch = useAppDispatch(); const navigation = useNavigation>(); const activeJob = useAppSelector((state) => state.job.activeJob); const handleStartDelivery = () => { dispatch(advanceJobStatus(JobStatus.EnRoute)); navigation.navigate(RouteNames.LiveTracking); }; if (!activeJob) return null; return ( {/* Map Background Placeholder */} [ Map Placeholder ] {/* Deliver Bottom Card */} Deliver to Customer {activeJob.dropName} {activeJob.dropAddress} ); }; export default OrderPickedUpScreen;