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: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -184,6 +184,7 @@ Additionally, the Camera can be used for barcode scanning
184
184
|`onZoom`| Function | Callback when user makes a pinch gesture, regardless of what the `zoom` prop was set to. Returned event contains `zoom`. Ex: `onZoom={(e) => console.log(e.nativeEvent.zoom)}`. |
185
185
|`torchMode`|`'on'`/`'off'`| Toggle flash light when camera is active. Default: `off`|
186
186
|`cameraType`| CameraType.Back/CameraType.Front | Choose what camera to use. Default: `CameraType.Back`|
187
+
|`orientation`|`'portrait'`/`'landscape'`/`'auto'`| Lock camera orientation to portrait, landscape, or auto-detect device orientation. Default: `auto`|
187
188
|`onOrientationChange`| Function | Callback when physical device orientation changes. Returned event contains `orientation`. Ex: `onOrientationChange={(event) => console.log(event.nativeEvent.orientation)}`. Use `import { Orientation } from 'react-native-camera-kit'; if (event.nativeEvent.orientation === Orientation.PORTRAIT) { ... }` to understand the new value |
188
189
|**Android only**|
189
190
|`onError`| Function | Android only. Callback when camera fails to initialize. Ex: `onError={(e) => console.log(e.nativeEvent.errorMessage)}`. |
0 commit comments