Responsive to the environment

In response to an example of a native expo camera, errors are given, such as _Camera is not detected by https://docs.expo.io/versions/latest/sdk/camera.html , but I see that others got it to work here

Does anyone have some basic code on how to use the camera module? Or debug, why doesn't the sample documentation work?

+5
source share
1 answer

I have the same problem, after a lot of research Expo Camera added from v20. I used v19.0. I am new to Expo and do not understand that it was added to v20 here . The problem is resolved after upgrading the exo-native version to v20. . the base code for the camera in expo is here

  • in package.json

    "response-native": " https://github.com/expo/react-native/archive/sdk-20.0.0.tar.gz ",

    "expo": "20.0.0-alpha.4",

    "respond": "16.0.0-alpha.12",

  • in app.json

    "sdkVersion": "20.0.0",

  • Remove your node_modules projects and run npm install

  • Restart the project in XDE and click "Restart" to clear the packer cache

+2
source

Source: https://habr.com/ru/post/1271500/


All Articles