При использовании метода takePictureAsync () для react-native-camera
он выдает ошибку (android), например
{
"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))
}
версии:
"react-native": "0.61.1",
"react-native-camera": "git+https://git@github.com/react-native-community/react-native-camera.git"