在世博会上打开相机

时间:2018-07-04 12:00:28

标签: javascript react-native augmented-reality expo

我正在尝试使用Expo XDE在我的android设备上运行此代码(https://snack.expo.io/Hk1C_YqjW),但是涉及到此行:

const arSession = await this._glView.startARSessionAsync();

显示此错误并停止:

[Unhandled Promise rejection: TypeError: undefined is not an object (evaluating '_reactNative.NativeModules.ExponentGLViewManager.startARSessionAsync')]

出什么问题了?

1 个答案:

答案 0 :(得分:1)

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

查看更多信息