mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 01:38:18 +00:00
Update Readme.md
This commit is contained in:
parent
4d5a8ba16b
commit
2f045eaece
10
README.md
10
README.md
@ -127,7 +127,7 @@ The type of capture that will be performed by the camera - either a still image
|
||||
|
||||
#### `captureTarget`
|
||||
|
||||
Values: `Camera.constants.CaptureTarget.cameraRoll` (default), `Camera.constants.CaptureTarget.disk`, ~~`Camera.constants.CaptureTarget.memory`~~ (deprecated),
|
||||
Values: `Camera.constants.CaptureTarget.cameraRoll` (default), `Camera.constants.CaptureTarget.disk`, ~~`Camera.constants.CaptureTarget.memory`~~ (deprecated),
|
||||
|
||||
This property allows you to specify the target output of the captured image data. By default the image binary is sent back as a base 64 encoded string. The disk output has been shown to improve capture response time, so that is the recommended value.
|
||||
|
||||
@ -197,6 +197,7 @@ e: {
|
||||
}
|
||||
```
|
||||
Will call when touch to focus has been made.
|
||||
By default, `onFocusChanged` is not defined and tap-to-focus is disabled.
|
||||
|
||||
#### `defaultOnFocusComponent`
|
||||
|
||||
@ -204,7 +205,9 @@ Values:
|
||||
`true` (default)
|
||||
`false`
|
||||
|
||||
#### `onFocusChanged`
|
||||
If `defaultOnFocusComponent` set to false, default internal implementation of visual feedback for tap-to-focus gesture will be disabled.
|
||||
|
||||
#### `onZoomChanged`
|
||||
|
||||
Args:
|
||||
```
|
||||
@ -215,6 +218,7 @@ Args:
|
||||
}
|
||||
```
|
||||
Will call when focus has changed.
|
||||
By default, `onZoomChanged` is not defined and pinch-to-zoom is disabled.
|
||||
|
||||
## Component methods
|
||||
|
||||
@ -229,7 +233,7 @@ Supported options:
|
||||
- `audio` (See `captureAudio` under Properties)
|
||||
- `mode` (See `captureMode` under Properties)
|
||||
- `target` (See `captureTarget` under Properties)
|
||||
|
||||
|
||||
#### `stopCapture()`
|
||||
|
||||
Ends the current capture session for video captures. Only applies when the current `captureMode` is `video`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user