【发布时间】:2018-07-04 12:00:28
【问题描述】:
我正在尝试使用 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')]
有什么问题?
【问题讨论】:
-
您是否指定了对
_glView的引用?就像示例代码一样。
标签: javascript react-native augmented-reality expo