No Inherit DocOptionalbarcodeSize of the scanning frame.
Frame height in pixels.
Frame width in pixels.
OptionalcameraLens facing direction (front or back).
OptionalflashPhoto capture flash mode. Maps to the platform capture pipeline (not the continuous torch).
OptionalfocusAutofocus mode.
OptionalframeColor of the scanning frame (when showFrame is true).
OptionallaserColor of the animated scanning laser (when showFrame is true).
OptionalmaxiOS capture pipeline quality prioritization.
OptionalmaxLimits the maximum zoom factor to something smaller than the camera's maximum.
You cannot go beyond the camera's maximum, only below.
The purpose of limiting zoom is because some modern iPhones report max zoom of 150+
which is probably beyond what you want. See documentation for the zoom prop for more info.
Example:
<Camera
maxZoom={15.0}
/>
OptionalonPress‑in event from physical capture buttons (iOS 17.2+).
OptionalonPress‑out event from physical capture buttons (iOS 17.2+).
OptionalonAndroid only. Triggered when camera fails to initialize or bind use cases.
OptionalonCalled when device orientation changes; see Orientation.
OptionalonCalled when a barcode/QR is decoded.
OptionalonCallback triggered when user pinches to zoom and on startup. Example:
<Camera
onZoom={(e) => {
console.log('zoom', e.nativeEvent.zoom);
}}
/>
OptionalratioShow a translucent aspect‑ratio guide over the preview.
Example: '1:1', '4:3', '16:9'.
OptionalratioOverlay color used with CameraProps.ratioOverlay.
OptionalresetTime in ms after which the focus rectangle resets; 0 disables auto‑reset.
OptionalresetAutomatically reset focus when motion is detected.
OptionalresizeHow the preview fits its bounds.
OptionalscanEnable barcode/QR analysis. Emits CameraProps.onReadCode.
OptionalscanThrottle (ms) to limit how often barcode scans can fire.
OptionalshowShow a visual scanning frame overlay.
OptionalshutterAndroid only*. Play a shutter capture sound when capturing a photo.
OptionaltorchTorch/flashlight state (continuous light while previewing). Independent from CameraProps.flashMode.
OptionalzoomControls zoom. Higher values zoom in.
Default zoom is 1.0, relative to the wide‑angle lens on multi‑camera devices.
Examples of minimum/widest zoom:
1.00.50.7const [zoom, setZoom] = useState(1.0);
<Button onPress={() => setZoom(1.0)} title="Reset" />
<Camera
zoom={zoom}
onZoom={(e) => {
setZoom(e.nativeEvent.zoom);
console.log('zoom', e.nativeEvent.zoom);
}}
/>
OptionalzoomEnable or disable the pinch gesture handler.
If zoomMode is on, you must pass zoom as undefined, or
avoid setting zoom it to allow pinch to zoom.
Props for the
Cameracomponent.Remarks
-1internally to represent “unset” (RN Codegen limitation for view props).processColor.zoomis provided (controlled), pinch does not change the native zoom; whenzoomisundefinedandzoomMode='on'(uncontrolled), pinch adjusts zoom and emits CameraProps.onZoom.Note: The component accepts all React Native
ViewPropsat runtime, but for readability in the generated docs we hide inherited members.