Skip to content

Close RNNavigationView gaps with the native NavigationView - #10

Merged
mfazekas merged 1 commit into
mainfrom
feat/rn-view-parity
Oct 21, 2026
Merged

mfazekas merged 1 commit into
mainfrom
feat/rn-view-parity

Conversation

@mfazekas

Copy link
Copy Markdown
Contributor

Brings <RNNavigationView> closer to the native <NavigationView>:

  1. Road shields and exit numbers in the maneuver banner. Route progress events get maneuverComponents and secondaryComponents, from the SDK's banner instruction components, and the view draws shields from their image URLs.
  2. distanceUnit prop, defaulting to the new Navigation.getDefaultDistanceUnit() (the SDK's own default from the device's region and measurement settings). Routes the view requests through waypoints use it for voice instructions too.
  3. Alternative routes. Both views request them; navigation maps draw them during guidance, and tapping one switches guidance to it, reported through addRouteChangeListener with reason: 'alternative'. On Android this uses switchToAlternativeRoute, which is @ExperimentalPreviewMapboxNavigationAPI.
  4. appearance prop (auto | day | night). auto switches at sunrise and sunset at the user's location; the UI and the Standard style's lightPreset follow it.
  5. Arrival card with the destination name and an "End navigation" button.

Checked on the iOS simulator and an Android emulator with simulated routes (Bay Bridge for shields and exits, Civic Center to Oakland for alternatives, Ferry Building for arrival). The example's NavigationView screen can now also drive the Bay Bridge route, and the RNNavigationView screen has unit, appearance and alternatives options.

- Road shields and exit numbers in the maneuver banner, from new
  maneuverComponents/secondaryComponents in route progress events.
- distanceUnit prop, defaulting to the new Navigation.getDefaultDistanceUnit();
  routes requested through waypoints use it for voice instructions too.
- Alternative routes: the views request them, navigation maps draw them, and
  tapping one switches guidance to it.
- appearance prop: day/night UI and Standard light preset, automatic at
  sunrise and sunset by default.
- Arrival card with the destination name and an end button.
@mfazekas
mfazekas merged commit a0c802a into main Oct 21, 2026
6 checks passed
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

Successfully merging this pull request may close these issues.

1 participant