So I just upgraded from SDK 50 -> 51 which made my app crash all the time I go to component with a Camera, now i fixed it, my current “take picture” method does not work. Do you guys know how to fix this?
const captureImage = async () => {
if (camRef) {
try {
const imgData = await camRef.current.takePictureAsync({
base64: false,
imageType: ImageType.png,
});
setImage(imgData);
} catch (err) {
console.log(err);
}
}
}
I tried using other methods but doesnt work
New contributor
Angeles III C. Tablante is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.