mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 01:38:18 +00:00
Added pause/resume preview functions to RNCamera (#1622)
This commit is contained in:
parent
119719237d
commit
747bcf9030
@ -291,6 +291,14 @@ export default class Camera extends React.Component<PropsType, StateType> {
|
||||
CameraManager.stopRecording(this._cameraHandle);
|
||||
}
|
||||
|
||||
pausePreview() {
|
||||
CameraManager.pausePreview(this._cameraHandle);
|
||||
}
|
||||
|
||||
resumePreview() {
|
||||
CameraManager.resumePreview(this._cameraHandle);
|
||||
}
|
||||
|
||||
_onMountError = ({ nativeEvent }: EventCallbackArgumentsType) => {
|
||||
if (this.props.onMountError) {
|
||||
this.props.onMountError(nativeEvent);
|
||||
|
Loading…
x
Reference in New Issue
Block a user