NavigationViewProps
type NavigationViewProps = object;
Props of NavigationView. Pass either route or waypoints.
Properties
| Property | Type | Description |
|---|---|---|
mute? | boolean | Mutes voice instructions. The view's own mute button also toggles them. |
onArrive? | (event: ArriveEvent) => void | Same event as Navigation.addArriveListener. |
onCancel? | () => void | The user ended the trip; guidance has stopped. Unmount the view. |
onError? | (error: NavigationViewError) => void | The route request or the start of guidance failed. |
onRouteProgress? | (event: RouteProgressEvent) => void | Same event as Navigation.addRouteProgressListener. |
route? | Route | Route from requestRoutes. Keep it unreleased while it's passed to the view. |
simulate? | boolean | Drive the route with simulated locations. Read when guidance starts. |
style? | StyleProp<ViewStyle> | - |
testID? | string | - |
waypoints? | Waypoint[] | Used when route isn't set: the view requests a route through them, origin first, and releases it on unmount. |