Skip to content

Navigation moving on its own even after shouldSimulateRoute is set to false #119

Description

@Timothy1060

<MapboxNavigation origin={currentLocation} destination={Pickup ? dropoff : pickup} shouldSimulateRoute={false} onLocationChange={event => { const {latitude, longitude} = event.nativeEvent; }} onRouteProgressChange={event => { const { distanceTraveled, durationRemaining, fractionTraveled, distanceRemaining, } = event.nativeEvent; }} onError={event => { const {message} = event.nativeEvent; console.log(message); }} onCancelNavigation={() => { // User tapped the "X" cancel button in the nav UI // or canceled via the OS system tray on android. // Do whatever you need to here. navigation.navigate('Transit', { order, current_status: 'NAVIGATING', }); }} onArrive={() => { // Called when you arrive at the destination. Pickup ? CONFIRM_DROPOFF() : CONFIRM_PICKUP(); }} />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions