Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 17237

Camera capture stopped working after upgrading from Expo SDK 50 -> 51

$
0
0

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


Viewing all articles
Browse latest Browse all 17237

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>