Repository navigation
Close RNNavigationView gaps with the native NavigationView - #10
Merged
Merged
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings
<RNNavigationView>closer to the native<NavigationView>:maneuverComponentsandsecondaryComponents, from the SDK's banner instruction components, and the view draws shields from their image URLs.distanceUnitprop, defaulting to the newNavigation.getDefaultDistanceUnit()(the SDK's own default from the device's region and measurement settings). Routes the view requests throughwaypointsuse it for voice instructions too.addRouteChangeListenerwithreason: 'alternative'. On Android this usesswitchToAlternativeRoute, which is@ExperimentalPreviewMapboxNavigationAPI.appearanceprop (auto|day|night).autoswitches at sunrise and sunset at the user's location; the UI and the Standard style'slightPresetfollow it.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.