我有一个 Expo 管理的项目,我想在其中使用React Native Vision Camera。Expo Camera没有为我的应用程序提供足够的功能。遵循Getting Started之后,在我的网络浏览器中运行应用程序时出现以下错误:
我已经使用导入了相机模块
import { Camera } from 'react-native-vision-camera';
并对其进行了调整app.json
以包含
"plugins": [
[
"react-native-vision-camera",
{
"cameraPermissionText": "$(PRODUCT_NAME) needs access to your Camera."
}
]
]