the react project created by Dva, combined with Cordova, is ready to encapsulate hybrid App. I want to use the cordova plug-in to call the camera. Is there any way to implement it?
the react project created by Dva, combined with Cordova, is ready to encapsulate hybrid App. I want to use the cordova plug-in to call the camera. Is there any way to implement it?
access to non-webview functions under cordova is done through plug-ins. For cameras, you can take a look at cordova-plugin-camera. Of course, there are many camera-related plug-ins to refer to. Basic usage:
window.navigator.camera.getPicture (cameraSuccess, cameraError, cameraOptions)
Previous: Which servers are involved in Wechat screenshot and sending?
Next: Weex setting header background is transparent and invalid