react-native-camera-kit
react-native-camera-kit copied to clipboard
fix `scanBarcode` property not working in iOS issue
Summary
This PR will fix #476
For iOS , there's no matching property defined in native, update scanBarcode property in component will not working.
How did you test this change?
- Assign
scanBarcode={false}toCameraScreenin example project. - Scan barcode, check whether navigate to result screen.
@scarlac Very appreciate if you could review this PR.
@scarlac Thanks for your comment!
Remove the event handler in JS maybe works, but this scanBarCode prop working well on Android platform but not in iOS, The inconsistent may need extra workarounds in iOS. I think this will keep consistency with both platforms and let this prop working as expected.
I think I could remove the delegate after this prop changes if you would like. Appreciate and looking forward to your further comments.