Expo Camera open improperly


#1

I use Barcode scanner from expo api. Camera preview sometimes open in different way, but sometimes it doesn’t. Please see the different between these two pictures. Thanks for help!


#2

Hey yimankaing. Sorry the Barcode scanner is giving you trouble. Have you tried setting the ratio prop as shown in the docs here: https://docs.expo.io/versions/latest/sdk/camera.html ?

If that doesn’t work, could you post your code for this component and also which expo SDK version you’re using? Thanks!


#3

Hi esamelson, it’s still the same. Let say 10 times of opening camera. I see this issue 3 times.


#4

Can you try using Camera component instead of BarCodeScanner ? The latter is sometimes issuey


#5

So just add BarCodeScanner prop to Camera and then it will work the same right? I’ll try it out. Thanks for your idea.


closed #6

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.