首页 > 解决方案 > 在世博会打开相机

问题描述

我正在尝试在我的 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')]

问题是什么?

标签: javascriptreact-nativeaugmented-realityexpo

解决方案


Expo 尚不支持 Android 上的 ARCore,仅支持 iOS 上的 ARKit。在https://docs.expo.io/versions/latest/sdk/AR上查看更多信息


推荐阅读