有没有办法在nativescript-vue中使用AR模块?

时间:2019-07-15 23:48:28

标签: nativescript nativescript-vue

我正在尝试使用this tutorial中概述的nativescript-ar插件,但是我使用的是Vue而不是Angular。无论出于什么原因,我都无法渲染AR模块视图。

这些是我尝试导入组件的一些方法:

import {
  AR,
  ARLoadedEventData,
  ARNodeInteraction,
  ARPlaneTappedEventData
} from "nativescript-ar";
import { Color } from "tns-core-modules/color";

export default {
  components: {
    // AR: () => require("nativescript-ar").AR
    // AR: () => import("nativescript-ar").AR
    AR
  },

我还在使用tns preview而不是tns run ios测试应用程序-这本身就是问题吗?我觉得到目前为止,我都尝试过各种“黑客”组合,但都无济于事...

0 个答案:

没有答案
相关问题