Which is better vue-native or nativescript-vue?

会有一股神秘感。 提交于 2019-12-03 05:46:07

问题


I would like to start a mobile app with VueJS. Can anyone please suggest which Framework I can choose between vue-native or nativescript-vue?


回答1:


Vue-Native is nothing but a wrapper around ReactNative. So the question becomes ReactNative vs NativeScript?

In my opinion, it's NativeScript.

  • Supports frameworks like Angular & Vue
  • Works with Core JavaScript / TypeScript too
  • Better code sharing
  • 100% access to native apis

ReactNative got a huge community and range of plugins, but the problem beings when you want to customise. Every app is unique in it's own way, it becomes really hard to customise a plugin for your own needs at least until you have good exposure to Objective C / Java and handle your own forks etc.,

With NativeScript you can always access the native objects & apis form JavaScript, simply write overrides on plugins within your project if you want to customise anything.

Here are few blog posts & videos those compare these frameworks.

  • Would Airbnb Have Fared Better With NativeScript Instead of React Native?
  • ReactNative vs NativeScript



回答2:


As @Manoj mentioned about the biggest advantage of using Nativescript is : You can acsess all the native elemnets and apis from Javascript.

I think another plus is the ability to create a code-sharing project. New Vue CLI plugin enables code sharing between web and mobile.There’s nothing quite as awesome as watching your web, iOS and Android app all spinning up at once with the same codebase.

You can further read on nativescript blog and here is the sample project.



来源:https://stackoverflow.com/questions/53867122/which-is-better-vue-native-or-nativescript-vue

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