Search code examples
react-nativeexpoexpo-camera

React Native Vision Camera using Expo


I have an Expo managed project in which I would like to use the React Native Vision Camera. The Expo Camera does not provide enough functionalities for my app. After following the Getting Started, I get the following errors when running the app in my web browser:

enter image description here enter image description here

I have imported the Camera module using import { Camera } from 'react-native-vision-camera'; and adapted my app.json to include

"plugins": [
    [
        "react-native-vision-camera",
        {
            "cameraPermissionText": "$(PRODUCT_NAME) needs access to your Camera."
        }
    ]
]

Solution

  • React Native Vision Camera doesn't have web support for now.

    https://github.com/mrousavy/react-native-vision-camera/discussions/892