Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hi everyone,

I'm working on a React Native project and I want to integrate Mapbox navigation functionality. Specifically, I want to:

  1. Display a route between two points on the map.

  2. Provide turn-by-turn navigation instructions.

  3. Update the route in real-time as the user moves.

  4. Possibly include options like avoiding tolls or highways.

So far, I've used @rnmapbox/maps for displaying maps, but I'm not sure how to implement navigation properly. I've seen Mapbox Navigation SDKs for Android/iOS natively, but the React Native integration is unclear.

Some questions I have:

Is there a React Native wrapper for Mapbox Navigation SDK that works well?

How can I handle real-time route updates as the user moves?

Any suggestions for customizing navigation UI (like next-turn cards, ETA, etc.)?

Are there any performance considerations I should keep in mind for mobile?

If anyone has experience with React Native + Mapbox navigation, it would be great to get some examples or guidance.

Thanks in advance!

You must be logged in to vote

Replies: 1 comment · 3 replies

Comment options

There's expo-mapbox-navigation and react-native-mapbox-navigation

I'm also thinking on doing a new one allowing integration with @rnmapbox/maps, but I only have some prototype at the moment

You must be logged in to vote
3 replies
@jsdev-robin
Comment options

Thanks for the info! A new integration with @rnmapbox/maps sounds great. If you ever share the prototype, I’d be interested in trying it out and contributing.

@GeoffreyFardeau
Comment options

Hey @mfazekas , do you think we can input custom routes (mines are from Graphhhopper) inside of theses libraries ? instead of mapbox API routes calculations?

thank you

@jsdev-robin
Comment options

Hey @GeoffreyFardeau, directly inputting custom routes into these libraries from React Native alone isn’t possible. If you want to use routes from Graphhopper, we’d need to create a custom bridge using Kotlin (for Android) and Swift (for iOS). Once that bridge is implemented, it would be possible to integrate and use custom routes with the Mapbox Navigation SDK in React Native

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.