【发布时间】:2019-10-17 20:21:25
【问题描述】:
我们有一个基于 WWDC 2019 中基于 swift 的 ARKit 示例 Capturing Body Motion in 3D 的项目。我们有一个使用原生 swift 组件的 React Native 应用程序,遵循 Swift in React Native - The Ultimate Guide 的精彩说明。现在我们想将来自ARKit example 的视图实现为一个 react-native 组件,但我只是不知道如何做到这一点。
ARKit example 使用 UIViewController 和 ARSessionDelegate,这意味着我们必须在组件中包装不仅仅是一个简单的视图。
我在how to present a native UIViewController in React Native 上找到了一些答案,但无法将此解决方案转换为快速代码,也无法使其与ARKit example 一起使用。你们中有人知道如何连接吗?
【问题讨论】:
标签: ios swift react-native arkit