-
Notifications
You must be signed in to change notification settings - Fork 620
Closed
Labels
Description
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={()=>{}}
/>
- 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] - When camera orientation changes from portrait to landscape, showFrame box is not aligned properly and it goes out of the screen.
nkigen, tantandao, TrebuhD, vkozinec, Volekss and 3 more