User Location@knitui/map
User Location Puck
Native-only component. UserLocationPuck renders the modern MapLibre Native "location puck" on iOS and Android, with visible, puckBearing (heading | course), and puckBearingEnabled to control whether and how the puck points. 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 show the puck.
import { UserLocationPuck } from "@knitui/map";Playground
Loading playground…
<UserLocationPuck />Examples
Documentation
This is a documentation-only story. On web you will see the basemap but no puck, since UserLocationPuck 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 |
|---|---|---|---|
puckBearing | "heading" | "course" | undefined | — | |
puckBearingEnabled | boolean | undefined | — | |
testID | string | undefined | — | |
visible | boolean | undefined | — |