Nativescript: Are there plans to expand to other base libraries?

Created on 10 Jul 2016  Â·  67Comments  Â·  Source: NativeScript/NativeScript

Vue.js and Riot.js would be good, because they don't have any native support yet.

feature

Most helpful comment

Vue.js +1

All 67 comments

Vue.js +1

Riot-js +1; Riot & Vue support would be a game changer.

+1 riotjs

+1for vue2

Vue.js +1

Vue.js +1

Most definitely! As a core team in order to remain focused, we need to polish the Angular 2 story first. There are still some things that we can enable before we say that we are DONE with the task. I think related to this discussion is the full integration with the Chrome DevTools. Once we have the Angular story, it will be much easier to use other frameworks like Vue.js or React.

I want to encourage someone who has a good knowledge of the internals of Vue.js to get in touch with us and we can help him with guidance and development to enable Vue.js in NativeScript. It will be a great experience for us to work together.

Vue 2 would be fantastic!

+1 vue.js

Vue would be a game changer. I love Vue more than I love Angular.

Vue + Vuex for data streams is just awesome.

+1 for Vue.js

+1 VueJS.

Just look at the popularity among the current Github demographic preference:

AngularJS 2: 20k+ stars
VueJS: 40k+ stars.

In that respect it's a no-contest. It's a great framework as well. Fast, small, simple.

+1 VueJS

+1 VueJS

+1 VueJS

+1 VueJS

+1 VueJS

+1 VueJS

+1 VueJS

+100 VueJS

+1 VueJS

+∞ Vue.js

VueJS for the win!

Scott

VueJS is so tinier, I think that after all the angular experience it would be soo easy to make vuejs integration. Nativescript is the best way to make native apps on JavaScript but, unfortunately, people just don't know about it. Let them know by focusing on this. Let NativeScript shine like never before.

If there are any VueJS users/developers who want to work on this; I'd be willing to lend them my expertise in how the low levels work (I've written over 40 plugins for NS). Please note I am a contractor, and I don't work for Telerik so I am not willing to do all the work myself since I really can't afford that much free work, but I can help a person/group of you who wants to the majority of the work on this. ;-)

That is interesting that VueJS does have 48k stars and Angular2/4 only has 22k stars... That is pretty nifty that the VueJS framework has taken that much developer mind share in that quick amount of time...

I completely agree! Angular is a target audience; yet most projects will lend themselves to something simpler. VueJS has a lot of momentum. NativeScript would bloom in popularity with VueJS support!

That is pretty nifty that the VueJS framework has taken that much developer mind share in that quick amount of time...

There is a simple reason as to why and please don't laugh when I say it. But, VueJS has a "PHP mentality". What I mean by that is, it is purposely built to be attractive to less advanced programmers, yet there is a lot of power under the hood, for more advanced programmers. Note, I could have just as easily said "JavaScript mentality" too, but I like the controversy. 😄 LOL! At any rate, VueJS' clear direction of being simple and pragmatic opens up its market of developers considerably and anything that supports it will automatically build up a synergy too, especially if they follow that same direction.

Hint, hint, NativeScript. 😉

Scott

@smolinari - LOL to be honest; simple is actually way way better (imho) when dealing with mobile. NAN (NativeScript Angular) offers a lot; but it costs a lot on mobile too because of its massive code base really effects the app startup/size.

I think that if a couple of the people with lower decent lower level experience with VueJS couple probably get a NS wrapper working pretty quickly -- however based on a quick look at VueJS this might not even be needed; you guys might feel right at home in NS already, without doing anything. NS already uses {{variable}} in the screen markup for any variables already, and you just assign you variables to a observable and you are gold. But I must confess I don't have ANY experience with VueJS; so I can't say what is missing beyond just briefly looking at the website and thinking the markup looked standard handlebar format..

NAN support has its own view engine which tends to break certain types of plugins. If you were able to use the standard PAN (Plain Awesome NativeScript) view engine without many modifications; VueJS would have a leg up on NAN apps because you would instantly inherit all the standard interface plugins.

Vue.js +1

ping @yyx990803

Can you give us your vision about this and the possibility of helping to create an integration?

@NathanaelA vue works with v-dom and SSR. Your template is compiled in js code (AOT optimezed) (render function)
Vue have a weex integration he is more similar with react-native
Vue also supports css-modules
Vue supports TypeScript

I believe that an integration will not be difficult, after all the pieces already exist.
I would love to help, but I have no technical knowledge of these specific parts of the vue.

I'm sure an integration with Vue will show the full potential of using the NS has.

Making a proper integration requires decent understanding of both Vue and NS's architecture - unfortunately, I haven't really had time to look into how NS works under the hood and what a proper integration would require. I don't think there would be any roadblocks technically, it just takes time :/

+1

+1

Vue.js +1

@yyx990803 Doesn't Vue have a strict dependency to the DOM? How would this work?

@vjoao Vue has a template compiler that can generate AST's https://github.com/vuejs/vue/tree/dev/packages/vue-template-compiler

I'm still familiarizing myself with NS but as far as I can tell, building upon an AST would be the ideal approach. Let me know if my theory is flawed!

Vue.js +1

Is there a reason people are commenting +1? I suggest you add a thumbs-up to the top comment.

It's probably because the OP is asking for two different libraries, and most of the people are making it known they particularly want Vue support with their comment.

Scott

@IvanFon To receive notifications about activity in this issue. When you are receiving hundreds notifications daily it will be easier to see this issue in Participating list and you will be emailed about comments.

RiotJS +1

For anyone wanting to help integrating Vue with NativeScript... https://nativescript.ideas.aha.io/ideas/NS-I-94

Jen Looper commented April 19, 2017 17:04
We have started on a community-led initiative to port NativeScript for Vue.js! Take a look at our Community Slack in the #vue channel. The very initial steps are being taken by Igor here: https://github.com/rigor789/nativescript-vue and we need PRs and lots of help! Please join us!

+1 for Vue!

Vue2!!

Vue.js +1

vue +1

vue +1

+1 for Vue2

vue +1

vue2 +1

There is a community project on Vue.js support in NativeScript:
https://github.com/NativeScript/NativeScript/issues/2437#issuecomment-299340229

For questions/suggestions on this integration please use the respective GitHub repository:
https://github.com/rigor789/nativescript-vue/issues

Closing this issue

Vue2 +1

Vue2+1

Vue2 +1

NativeScript's own Angular repository

https://github.com/NativeScript/nativescript-angular

despite all fanfare and homepage marketing, etc. has less stars on GitHub than the community grown Vue integration, which has been out for less time.

https://github.com/rigor789/nativescript-vue

If only there was better funding for this or if this had official support from NativeScript, it would be a game changer in native / mobile scene.

Vue2 +1

vue.js +1 i hope NativeScript can support .vue file.

@SkyGrass @tvld @geodeveloper @kid-wumeng @ksolberg

The Vue integration can now be experimentally tested in the NativeScript playground

Thanks @NickIliev, I just had a go at it.

I don't understand the concept of _two_ applications: _Playground_ and _Preview_. I would have thought to see just a Playground with selectable preview projects, but apparently I am off the whole Nativescript concept...

Further, Preview only shows the last dropped component and does not show any of the earlier inserted, which cant be right.

I seriously want to like the concept, but I still need to work on that ;))

Hey, @tvld here you can find a blog post explaining the concept behind the two applications.

Scan the code

Once you choose the template, you will be asked to scan the QR Code with the NativeScript Playground app. This will open the app in NativeScript Preview app.

Make changes

Now you can make changes to the code. You can easily edit all available files (html, css and ts). Whenever you are ready just save the files (⌘ + S or CTRL + S) and this will automatically and immediately update your app in the Preview.

In case you ask. Nope! You don't need to scan the code over and over again.

@NickIliev That works; the blog was helpful. The complete reloading of the preview app slows things down after each change, but the results are promising... diving further ))

Another +1 for Vue

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings