react-native-mapbox-navigation
react-native-mapbox-navigation copied to clipboard
How to change the destination while in progress
Hey does anybody know how to change the destination while its currently navigating a destination. It appears swapping out the destination
prop does not change the destination.
@squareborg the way i am using it is to wrap the navigator in a view under state isInRide
when a new destination comes in then I setIsInRide(false)
update the coords for destination and then setIsInRide(true)
to reinitialise the navigator. I wish to see an integrated method in this as well
@zoolle Perfect, yeah I was thinking this would be something of a last resort if nothing existed, I just tested it and it does reload now. Thanks
@zoolle Could you share a sample code? I tried it but every time I restart the navigator the app just closes without any error message.