javascript - Undefined is not an object _expo.camera.constant when using expo Camera SDK -


i created rn project create-react-native-app (crna). want use camera api provided expo. in doing so, copied example here https://docs.expo.io/versions/latest/sdk/camera.html , included component. starting app gives me following: undefined not object _expo.camera.constant massive stacktrace... ideas going wrong here?

i ran same issue trying use expo camera api crna project. manage access camera api expo sdk upgrade. here steps followed:

  1. in app.json change expo sdk version : "sdkversion": "20.0.0",
  2. in package.jsonchange current dependencies expo, react , react native:

"expo": "20.0.0-alpha.4", "react": "16.0.0-alpha.12", "react-native":"https://github.com/expo/react-native/archive/sdk-20.0.0.tar.gz",

  1. delete node_modulesfolder
  2. run npm install again

these steps didn't break packager: still can launch project npm start , expo xde. though, didn't take time test side effects, particularly eject process provided crna.

i advice test fix on not-for-production app.

nonetheless, hope help!


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -