Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Timothy1060 opened this issue Nov 1, 2023 · 0 comments

Comments

@Timothy1060
Copy link

<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(); }} />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant