Skip to content

iOS: Can't disable Barcode Scanner #711

Closed
@tomasmcm

Description

@tomasmcm

Describe the bug
I'm trying to use react-native-camera-kit in expo and the normal camera always shows the barcode scanner, even when scanBarcode and showFrame are set to false

To Reproduce

npx create-expo-app test-camera-kit
cd test-camera-kit/
npm install react-native-camera-kit
npm install --dev expo-dev-client
npx expo run:ios --device

I'm using the code from CameraExample, and react-native-permissions for requesting access to the camera.

Expected behavior
Barcode scanner should be disabled by default, if not there should be a way to disable it.
I was able to hide the laser and frame by setting laserColor and frameColor to transparent, but there is still a grey overlay with a rectangle cutout in the middle.

Screenshots

Image

Smartphone (please complete the following information):

  • Device: iPhone 16 Plus
  • OS: iOS 18.3
  • Versions
    • expo: 52.0.39
    • react-native: 0.76.7
    • react-native-camera-kit: 14.2.0
    • react-native-permissions: 5.2.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions