ideacreation / react-native-barcodescanner

A barcode scanner component for react native - not maintained anymore - use react-native-camera
MIT License
537 stars 162 forks source link

Let BarcodeScannerView manage lifecycle event. #30

Open zongjingyao opened 8 years ago

zongjingyao commented 8 years ago

Let BarcodeScannerView implements LifecycleEventListener. Add LifecycleEventListener in createViewInstance and remove LifecycleEventListener in onDropViewInstance.

andreaskeller commented 8 years ago

@zongjingyao thank you for your contribution. could you provide some more details about the motivations for your pull request. did you encounter any problems with the former approach?

fbacker commented 8 years ago

Does this solve the camera 'lock' issue? When developing with hot reload, after first reload the emulator crashes. Need to activate/deactivate with another app (e.g. skype) to be able to re-run my script.