Skip to content

How to scan QR codes with dark background #49

@aelaboussi

Description

@aelaboussi

I can't scan qrcodes / datamatrix with dark background, is there a way to achieve that ?

used deps:

  "dependencies": {
    "@mgcrea/vision-camera-barcode-scanner": "^0.12.3",
    "@react-native/new-app-screen": "0.81.1",
    "react": "^19.1.0",
    "react-native": "0.81.1",
    "react-native-safe-area-context": "^5.5.2",
    "react-native-vision-camera": "^4.7.2",
    "react-native-worklets-core": "^1.6.2"
  },

Code snippet:

<Camera
    style={StyleSheet.absoluteFill}
    device={device}
    isActive
    {...cameraProps}
/>

Tried to play with Camera's props but couldn't fix it.

edit: i have switched to react-native-camera-kit and it works well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions