[ Package conformance ]
Device & Platform · >=1.0.0
react-native-compass-heading
native-seam: the start/stop NativeEventEmitter wrappers run from the bundle; the CompassHeading module backs them with the real DeviceOrientationEvent (webkitCompassHeading on iOS Safari, else the alpha angle converted to a clockwise compass heading — the same source expo-location.getHeadingAsync uses, kept consistent), emitting the HeadingUpdated { heading, accuracy } events upstream subscribes to, throttled by the caller’s update_rate degree threshold85%
API coverage
No visual conformance cases have been published for this package yet. The registry summary below describes what the compat layer implements.
Working (6)
start(update_rate) (acquires DeviceOrientation permission on iOS Safarisubscribes deviceorientationemits HeadingUpdated with degree-threshold throttlingreturns false when DeviceOrientationEvent is unavailable)stop() (removes the listener)NativeEventEmitter(CompassHeading) HeadingUpdated subscription
Missing (2)
compass accuracy is -1 unless the browser exposes webkitCompassAccuracy (DeviceOrientationEvent.alpha carries no accuracy — coarser than CLLocationManagersame caveat as expo-location heading)