javascript - 在世博会打开相机
问题描述
我正在尝试在我的 android 设备上运行此代码( https://snack.expo.io/Hk1C_YqjWExpo XDE
) ,但是当涉及到这一行时:
const arSession = await this._glView.startARSessionAsync();
显示此错误并停止:
[Unhandled Promise rejection: TypeError: undefined is not an object (evaluating '_reactNative.NativeModules.ExponentGLViewManager.startARSessionAsync')]
问题是什么?
解决方案
Expo 尚不支持 Android 上的 ARCore,仅支持 iOS 上的 ARKit。在https://docs.expo.io/versions/latest/sdk/AR上查看更多信息
推荐阅读
- linux - 将两个文件夹位置合二为一
- python - 在 Python 中展平或序列化数据以使其仅包含数据字节的适当方法是什么?
- reactjs - 当我在 Visual Studio/IIS 中运行时在客户端应用程序上使用文件保护程序时,为什么我的 .Net Core 3.1 API/SPA 突然停止?
- database - postgres - 转换 .dat.gz 文件 .sql 文件?
- javascript - TypeError:errorScreen 不是函数
- pandas - Excel写入以在具有多个工作表的同一张工作表上获取多个数据框并格式化数据
- testcontainers - 我想通过属性配置 IndefiniteWaitOneShotStartupCheckStrategy,而不是在 testcontainer 上使用 Java 类
- string - 来自 abort(3) (SIGABRT) 错误的中止信号
- python - 烧瓶登录不导入
- webmethod - NET Core 应用程序 WebMethod 需要传入 URL 作为参数