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