这是indexloc提供的服务,不要输入任何密码
Skip to content

Camera Recipe: react-native-vision-camera recipe doesn't work. #136

@vishalenrique

Description

@vishalenrique

Describe the bug

CodeScanner functionality doesn't work. The camera setup and everything else works perfectly such that if I comment out the codeScanner code I am able to see the camera preview but if I uncomment the codeScanner prop on <Camera /> component then there's an error

Camera.onError(code-scanner/not-compatible-with-outputs): [code-scanner/not-compatible-with-outputs] CodeScanner can only be enabled when both video and frameProcessor are disabled! Use a Frame Processor Plugin for code scanning instead. [code-scanner/not-compatible-with-outputs: [code-scanner/not-compatible-with-outputs] CodeScanner can only be enabled when both video and frameProcessor are disabled! Use a Frame Processor Plugin for code scanning instead.]

         <Camera
            isActive={isActive}
            device={device}
            codeScanner={codeScanner} // Here's that prop
            style={StyleSheet.absoluteFill}
            photo
            video
          />

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions