react本机摄像头>;takePictureAsync()在android设备中抛出错误代码E\u CAMERA\u BAD\u VIEWTAG
当使用react本机摄像头>;takePictureAsync()在android设备中抛出错误代码E\u CAMERA\u BAD\u VIEWTAG,android,react-native,react-native-camera,Android,React Native,React Native Camera,当使用react native camera的takePictureAsync()方法时,会抛出类似android的错误 代码: 版本: “react native”:“0.61.1”, “反应本机摄像头”:“git+https://git@github.com/react native community/react native camera.git“您的问题在库的git存储库中有一个未解决的问题:它似乎是库的一个bug。您应该跟踪问题您的问题在库的GIT存储库中有一个未解决的问题:它似乎是
react native camera
的takePictureAsync()方法时,会抛出类似android的错误
代码:
版本:
“react native”:“0.61.1”,
“反应本机摄像头”:“git+https://git@github.com/react native community/react native camera.git“
您的问题在库的git存储库中有一个未解决的问题:它似乎是库的一个bug。您应该跟踪问题您的问题在库的GIT存储库中有一个未解决的问题:它似乎是库的一个bug。你应该跟踪这个问题
{
"framesToPop": 1,
"nativeStackAndroid": [],
"userInfo": null,
"message": "takePicture failed",
"code": "E_CAMERA_BAD_VIEWTAG",
"line": 2189,
"column": 45,
"sourceURL": "http://192.168.31.164:8081/index.bundle?platform=android&dev=true&minify=false"
}
try {
const data = await this.camera.takePictureAsync(options)
console.log('camera response : -', data);
}
catch (e) {
console.warn(JSON.stringify(e, null, 2))
}