如何在vue native中构建helloworld应用程序?

时间:2018-12-27 08:23:56

标签: android vue.js vue-native

我已经设置了一个空白应用,并使用以下命令在android模拟器中成功运行

npm install -g vue-native-cli
vue-native init test1 // Initializes crna project
cd test1

npm start

http://localhost:19002/中,我单击“在Android设备/模拟器上运行”,博览会显示空白应用程序“打开App.js以开始在您的应用程序上运行!”

我看到有一个helloworld应用 https://vue-native.io/getting-started.html

但是上面的链接没有提到app.js,所以我不明白如何开始构建helloworld应用程序。

有人知道我在想什么吗?

1 个答案:

答案 0 :(得分:0)

您必须将 app.js 替换为 app.vue 。您的文件夹必须如下所示: https://i.imgur.com/TzMv95r.png