margelo /react-native-vision-camera
📸 A powerful, high-performance React Native Camera library.
★ 9,660⑂ 1,396👁 60⑃ 1,877● 2,162▤ 214
+1
Daily
9,660
stars
1,396
forks
60
watchers
1,877
prs
2,162
issues
214
releases
README
VisionCamera is a powerful, high-performance Camera library for React Native. It features:
📸 Photo and Video capture
👁️ QR/Barcode scanner
📱 Customizable devices and multi-cameras ("fish-eye" zoom)
🎞️ Customizable resolutions and aspect-ratios (4k/8k images)
⏱️ Customizable FPS (30..240 FPS)
🧩 Frame Processors (JS worklets to run facial recognition, AI object detection, realtime video chats, ...)
🎨 Drawing shapes, text, filters or shaders onto the Camera
🔍 Smooth zooming (Reanimated)
⏯️ Fast pause and resume
🌓 HDR & Night modes
⚡ Custom C++/GPU accelerated resizer (Metal/Vulkan)
Install VisionCamera from npm:
sh
npm i react-native-vision-camera
cd ios && pod install
..and get started by setting up permissions!
Links
- VisionCamera Documentation
- VisionCamera LLMs.txt
- Community Discord
- Example App
- AWS Device Farm Tests (sign in via the AWS Access Portal first)
VisionCamera V4
As VisionCamera V5 is released, VisionCamera V4 is no longer actively maintained.
The VisionCamera V4 code has been archived under margelo/react-native-vision-camera-v4-snapshot, and the old documentation page is deployed at visioncamera4.margelo.com.
ShadowLens
To see VisionCamera in action, check out ShadowLens!
Example
tsx
function App() {
return (
)
}
See the example app
Adopting at scale
VisionCamera is built by Margelo.
We make apps better and faster.
Socials
🐦 Follow me on Twitter for updates
📝 Check out my blog for examples and experiments
💬 Join the Margelo Community Discord for chatting about VisionCameraTop issues
#3823🛠️ (iOS) Not possible to build for simulator with react-native-vision-camera-barcode-scanner on iOS 2619 comments · 2026-04-28#1931✨ Basic web support 13 comments · 2023-10-05#3997🛠️ (iOS) iOS build fails: 'React/RCTMessageThread.h' file not found when building VisionCameraWorklets (when using react-native-vision-camera-worklets)9 comments · 2026-06-04#544✨ Allow audio processing similar to frame processing7 comments · 2021-10-20#4213🐛 [Android] Each FrameOutput leaks its native thread (dispose() doesn't shut down the executor; useFrameOutput never disposes)6 comments · 2026-10-06#4114🐛 convertCameraPointToFramePoint ignores normalising extents on orientation swap (iOS) — square region maps to a 3.16:1 strip3 comments · 2026-07-30#4096🐛 CameraOrientation.fromDegrees() has LEFT/RIGHT swapped on Android — doesn't round-trip its own .degrees getter3 comments · 2026-07-26#4046🐛 [Android] Cannot capture RAW using .capturePhotoToFile() if permission is granted in the same launch of app3 comments · 2026-06-25
Latest release
Release 5.2.4 v5.2.4 2026-10-295.2.4 (2026-10-29) ✨ Features Add native tap-to-focus lifecycle listeners (4172) (050ceac) Add native zoom gesture change listener (4171) (3becbfd) expose metadata from capturePhotoToFile (4170) (1ca9b7b) 🐛 Bug Fixes Deep-compare constraints instead of JSON.stringify-ing them (4167) (8015396) Memoize targetResolution in output hooks (4166) (2ae908a) prevent CameraX executor starvation (4218) (1a69f29)