[英]React Native Vision Camera using Expo
I have an Expo managed project in which I would like to use the React Native Vision Camera .我有一个 Expo 托管项目,我想在其中使用React Native Vision Camera 。 The Expo Camera does not provide enough functionalities for my app.
Expo 相机没有为我的应用程序提供足够的功能。 After following the Getting Started , I get the following errors when running the app in my web browser:
遵循Getting Started之后,在我的 web 浏览器中运行应用程序时出现以下错误:
I have imported the Camera module using import { Camera } from 'react-native-vision-camera';
我已经使用
import { Camera } from 'react-native-vision-camera';
and adapted my app.json
to include并调整了我的
app.json
以包括
"plugins": [
[
"react-native-vision-camera",
{
"cameraPermissionText": "$(PRODUCT_NAME) needs access to your Camera."
}
]
]
React Native Vision Camera doesn't have web support for now. React Native Vision Camera 目前不支持 web。
https://github.com/mrousavy/react-native-vision-camera/discussions/892 https://github.com/mrousavy/react-native-vision-camera/discussions/892
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.