【发布时间】:2017-09-12 03:27:58
【问题描述】:
在修改 flashMode 属性的情况下尝试拍照时出现以下错误:
{ NSLocalizedDescription: '错误域=AVFoundationErrorDomain Code=-11800 "操作无法完成" UserInfo={NSUnderlyingError=0x170440210 {错误 域=NSOSStatusErrorDomain 代码=-16800 "(null)"}, NSLocalizedFailureReason=发生未知错误(-16800), NSLocalizedDescription=操作无法完成}' } } 2017-09-12 00:08:29.907053-0300 GimenesApp [1936:765074] { [错误: 错误域=AVFoundationErrorDomain 代码=-11800 "操作可能 未完成” UserInfo={NSUnderlyingError=0x170440210 {错误 域=NSOSStatusErrorDomain 代码=-16800 "(null)"}, NSLocalizedFailureReason=发生未知错误(-16800), NSLocalizedDescription=操作无法完成}]
这是我正在使用的一段代码:
<Camera
captureTarget={Camera.constants.CaptureTarget.disk}
ref={(cam) => {
this.camera = cam;
}}
flashMode={this.state.flashMode}>
<Button onPress={this.takePicture.bind(this)} transparent
<Icon name="ios-radio-button-off" />
</Button>
</Camera>
【问题讨论】:
标签: react-native react-native-camera