3

I am using the Expo camera in my React Native application for my web application.

Whenever I open the web application from any browser from my mobile device (Samsung Galaxy S10), it uses a wide-angle camera.

I'd like the webapp to use the "normal" back camera. Is there a way to define this?

<Camera 
 ref={cameraRef}
 style={styles.camera}
 focusDepth='1'
 ratio='4:3'
>
David Leuliette
  • 1,595
  • 18
  • 26
Jeroen
  • 113
  • 10
  • Did you checked the picturesize and ratio or changed the zoom props? may its only look like wideangle – Gismo1337 Feb 28 '22 at 11:12
  • @Gismo1337 I have set the ratio to '4:3' and didn't modify the picturesize / zoom props. I am 100% sure it is using the wide angle camera of my phone – Jeroen Feb 28 '22 at 11:39
  • Start an issue: https://github.com/expo/expo/labels/Camera – Gismo1337 Feb 28 '22 at 13:47

1 Answers1

1

It looks like Expo Camera doesn't support selecting which lens to use. An alternative is to use is react-native-vision-camera

TomS
  • 635
  • 5
  • 9