opening camera in Expo

故事扮演 提交于 2021-01-29 06:37:27

问题


I am trying to run this code (https://snack.expo.io/Hk1C_YqjW) on my android device using Expo XDE, but when it comes to this line:

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

shows this error and stops:

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

What is the problem?


回答1:


Expo doesn't support ARCore on Android yet, only ARKit on iOS. See more information at https://docs.expo.io/versions/latest/sdk/AR



来源:https://stackoverflow.com/questions/51173198/opening-camera-in-expo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!