teslamotors / react-native-camera-kit

A high performance, easy to use, rock solid camera library for React Native apps.
MIT License
2.42k stars 577 forks source link

iPhone 14 pro and iPhone 15 Pro not able to focus QR code #629

Closed Awethentique closed 6 months ago

Awethentique commented 6 months ago

Describe the bug When trying to scan a QR code on another device from iPhone 14/15 pro (One with 3 cameras) The Camera does not focus to pick up the QR code.

Also note that if the QR code has big blocks, then it is sort of able to read the code, more noticeable when the blocks are smaller. No matter what I tried, it does not focus.

This is my current usage. I have tried various options

<Camera
          ref={ref}
          style={styles.camera}
          cameraType={CameraType.Back} // front/back(default)
          flashMode="auto"
          focusMode="on"
          zoomMode="on"
          resetFocusWhenMotionDetected
          // maxZoom={10}
          scanBarcode
          showFrame
          laserColor={colors.secondary}
          {...props}
        />

To Reproduce Steps to reproduce the behavior:

  1. Load a QR code of size: 240 on another mobile device
  2. use this package in your app or test app to scan the QR code
  3. In the camera viewport you are not able to focus

Expected behavior Ising iPhone 14/15 device you should be able to focus on the QR code and be able to read it using the camera

Screenshots If the issue is a visual glitch or UI issue please provide screen shots. image

Smartphone (please complete the following information):

DevopsDood commented 6 months ago

Check to see if this helps: https://github.com/teslamotors/react-native-camera-kit/issues/533#issuecomment-1678245167

Seems a new beta version might do the trick

Awethentique commented 6 months ago

Check to see if this helps: #533 (comment)

Seems a new beta version might do the trick

Thank you, This worked I applied react-native-camera-kit@14.0.0-beta13