A powerful, high-performance React Native Camera library.
A powerful, high-performance React Native Camera library.
VisionCamera is a powerful, high-performance Camera library for React Native. It features:
Install VisionCamera from npm:
npm i react-native-vision-camera
cd ios && pod install..and get started by setting up permissions!
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.
To see VisionCamera in action, check out ShadowLens!
function App() {
return (
<Camera
style={StyleSheet.absoluteFill}
device="back"
isActive={true}
/>
)
}See the example app
VisionCamera is built by Margelo. We make apps better and faster.
Android: every <Camera> mount leaks its SurfaceView and camera output stream
iOS 26: .mp4 recordings play silent in AVFoundation — QuickTime-branded file with an MPEG-4 audio sample entry (recommendedMovieMetadata path)
[iOS] Sharing one output between two CameraSession's aborts in [AVCaptureOutput detachFromFigCaptureSession:]
Camera cannot focus at close range (~10cm) on iPhone 18 Pro — works on iPhone 12 Pro
resizer: Vulkan shader is not packaged with AGP 9 (shader sourceSet compilation removed)
iOS: video output `outputOrientation` reports the set value, not connection state; `currentResolution` returns undefined
convertCameraPointToFramePoint ignores normalising extents on orientation swap (iOS) — square region maps to a 3.16:1 strip
✨ Support Camera2 native face detection on Android
CameraOrientation.fromDegrees() has LEFT/RIGHT swapped on Android — doesn't round-trip its own .degrees getter
️ (iOS) iOS build fails: 'React/RCTMessageThread.h' file not found when building VisionCameraWorklets (when using react-native-vision-camera-worklets)