Skip to content

Not able to adjust the size of the scan frame box #380

@mayanak-shah

Description

@mayanak-shah

I am using this library for barcode but unable to adjust Frame size on camera.
#188 (comment) [reference it was closed last time]
My Code->
<Camera
ref={(ref: any) => {
cameraRef = ref
}}
style={{ flex: 1 }}
offsetForScannerFrame={50}
heightForScannerFrame={100}
cameraType={CameraType.Back}
scanBarcode={true}
showFrame={true}
laserColor="red"
frameColor="yellow"
onReadCode={()=>{}}
/>

  1. On Npm page it says there is a prop to adjust Frame size but I don't think it is working.
    https://www.npmjs.com/package/react-native-camera-kit/v/9.0.0 [bottom of the page, prop -heightForScannerFrame]
  2. When camera orientation changes from portrait to landscape, showFrame box is not aligned properly and it goes out of the screen.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions