/cordova-react-issue

https://stackoverflow.com/questions/53918049/triggering-cordova-camera-plugin-w-reactjs?noredirect=1#comment94693945_53918049

Primary LanguageJavaScript

cordova-react-issue

Investigating why would react fail on take a picture and display it.

tl;dr;

It doesn't fail.

steps

First clone this repo and perform npm install

Make sure you have the latest cordova installed:

sudo npm -g install cordova

Then plug you development phone on your machine and do npm run android. If you work with ios hack a while the package.json.

before pushing the button after accepting the picture
before after

In the end the chrome://inspect was instrumental to figure it out and the react docs as well.