RNNavigationViewProps
type RNNavigationViewProps = Omit<NavigationViewProps, "styleURL" | "nightStyleURL"> & object;
Defined in: src/RNNavigationView.tsx:51
Props of RNNavigationView: NavigationViewProps, plus the props below.
Type Declaration
appearance?
appearance?: RNNavigationViewAppearance;
Colors of the UI and the Standard style's light preset. Defaults to auto.
children?
children?: ReactNode;
Rendered inside the MapView, e.g. extra sources and layers.
distanceUnit?
distanceUnit?: DistanceUnit;
Unit of the distances the view shows, and of voice instructions for a route the view requests through
waypoints. Defaults to Navigation.getDefaultDistanceUnit.
nightStyleURL?
nightStyleURL?: string;
Map style while appearance is night. Defaults to styleURL.
routeLineStyle?
routeLineStyle?: RouteLineStyle;
Colors of the route line and the alternative routes.
styleURL?
styleURL?: string;
Defaults to Mapbox Standard, whose light preset follows appearance. With another style it only changes the UI.