【问题标题】:opening camera in Expo在世博会打开相机
【发布时间】: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


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2018-10-19
    • 2021-05-27
    • 1970-01-01
    • 2019-01-28
    • 2019-11-14
    • 1970-01-01
    • 2018-04-23
    • 2022-01-23
    • 1970-01-01
    相关资源
    最近更新 更多