Open zongjingyao opened 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?
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.
Let BarcodeScannerView implements LifecycleEventListener. Add LifecycleEventListener in createViewInstance and remove LifecycleEventListener in onDropViewInstance.