You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -197,7 +197,6 @@ Additionally, the Camera can be used for barcode scanning
197
197
|`resizeMode`|`'cover' / 'contain'`| Determines the scaling and cropping behavior of content within the view. `cover` (resizeAspectFill on iOS) scales the content to fill the view completely, potentially cropping content if its aspect ratio differs from the view. `contain` (resizeAspect on iOS) scales the content to fit within the view's bounds without cropping, ensuring all content is visible but may introduce letterboxing. Default behavior depends on the specific use case. |
198
198
|`scanThrottleDelay`|`number`| Duration between scan detection in milliseconds. Default 2000 (2s) |
199
199
|`maxPhotoQualityPrioritization`|`'balanced'` / `'quality'` / `'speed'`|[iOS 13 and newer](https://developer.apple.com/documentation/avfoundation/avcapturephotooutput/3182995-maxphotoqualityprioritization). `'speed'` provides a 60-80% median capture time reduction vs 'quality' setting. Tested on iPhone 6S Max (66% faster) and iPhone 15 Pro Max (76% faster!). Default `balanced`|
200
-
|`iOsSleepBeforeStarting`|`number`| iOS only. Delay (ms) before the capture session starts. Default `100`. Set to `0` to skip. Helps ensure `session.commitConfiguration()` finishes before `session.startRunning()`, reducing occasional crashes seen when rapidly toggling cameras: `-[AVCaptureSession startRunning] startRunning may not be called between calls to beginConfiguration and commitConfiguration`. iOS feedback ID: FB21533559 |
201
200
|`iOsDeferredStart`|`boolean`| iOS 26+ only. Enables `AVCaptureOutput.deferredStartEnabled` when supported to get the preview visible faster. Default `true`. When enabled, the first capture can be delayed by a few hundred milliseconds. Ignored on Android and on older iOS versions. |
202
201
|`onCaptureButtonPressIn`| Function | Callback when iPhone capture button is pressed in or Android volume or camera button is pressed in. Ex: `onCaptureButtonPressIn={() => console.log("volume button pressed in")}`|
203
202
|`onCaptureButtonPressOut`| Function | Callback when iPhone capture button is released or Android volume or camera button is released. Ex: `onCaptureButtonPressOut={() => console.log("volume button released")}`|
0 commit comments