import React from 'react'; import { View, Text } from 'react-native'; import Svg, { Circle, Path } from 'react-native-svg'; import { useAppTheme } from '@theme'; import { PrimaryButton } from '@components'; import { useNavigation, CommonActions } from '@react-navigation/native'; import { NativeStackNavigationProp } from '@react-navigation/native-stack'; import { AppStackParamList } from '@navigation/navigationTypes'; import { RouteNames } from '@utils/constants'; import { getStyles } from './deliveryCompletedScreen.styles'; export const DeliveryCompletedScreen: React.FC = () => { const { colors } = useAppTheme(); const styles = getStyles(colors); const navigation = useNavigation>(); const handleGoToDashboard = () => { // Reset route stack and go back to Dashboard navigation.dispatch( CommonActions.reset({ index: 0, routes: [ { name: 'BottomTabs', state: { routes: [{ name: RouteNames.Dashboard }], }, }, ], }) ); }; return ( {/* Checkmark Vector */} Delivery Completed! You earned ₹78.00 on this delivery {/* Summary Card */} Order ID #ORD125487 Delivery Distance 1.2 km Time Taken 15 mins Payment Mode Online Paid ); }; export default DeliveryCompletedScreen;