react-native-vision-camera-realtime
Installation
SKILL.md
Real-time VisionCamera pipelines
This is the specialized companion to react-native-vision-camera. Optimize the complete path from Camera buffer to final result, not an isolated stage. Before relying on exact APIs, check installed versions against current VisionCamera docs and the consumer's official docs or source.
Choose by final consumer
| Final consumer | Preferred path |
|---|---|
| Frame-coupled rendering, effects, or overlays | Keep processing and drawing on one GPU timeline with <SkiaCamera /> or WebGPU |
| WGSL compute or GPU inference | Frame.getNativeBuffer() to a WebGPU video frame to device.importExternalTexture(...) |
| Native plugin that depends on VisionCamera | A long-lived Nitro HybridObject whose hot method accepts a typed Frame |
| Native library without a VisionCamera dependency | The untyped NativeBuffer pointer and explicit release contract |
| State-only ML or scanning | Benchmark the platform runtime across ANE or NPU, GPU, and CPU backends; return compact state |
| CPU-only consumer | Use the smallest useful resolution and format with a bounded, reusable CPU buffer path |
Load references/interop.md only when implementing or reviewing Nitro, NativeBuffer, WebGPU, Skia, Resizer, or ArrayBuffer interop.