User Location@knitui/map
Native User Location
Native-only component. NativeUserLocation renders the platform's built-in user-location indicator on iOS and Android (the native MapLibre LocationComponent / Core Location puck), with mode (default | heading | course) and androidPreferredFramesPerSecond. On web it is a deliberate no-op — it renders nothing and logs a development warning. Because Storybook runs on the web, this story produces no visible output; it exists purely as API documentation. On real devices, mount it as a child of <Map> to display the OS location dot.
import { NativeUserLocation } from "@knitui/map";Playground
Loading playground…
<NativeUserLocation />Examples
Documentation
This is a documentation-only story. On web you will see the basemap but no location indicator, since NativeUserLocation is a no-op outside iOS/Android. Run the component on a device or simulator to see the native location puck.
Loading example…
Props
| Prop | Type | Default | Description |
|---|---|---|---|
androidPreferredFramesPerSecond | number | undefined | — | |
mode | "default" | "heading" | "course" | undefined | — | |
testID | string | undefined | — |