Hacker News new | past | comments | ask | show | jobs | submit login

I'd love to hear the experiences and opinions of anyone who knows about building iOS and Android apps with NativeScript and Angular 2 [1], or who has used NativeScript [2] itself, please.

NativeScript has a JavaScript<=>Java bridge on Android, and a JavaScript<=>Objective C bridge on iOS, like a cross platform version of Apple's ObjC bridge used in OS/X JavaScript for Automation [3] [4] [5] (but AFAIK Apple's ObjC bridge is apparently not available for developers to use as a framework, nor on iOS, nor of course on Android).

Unlike React Native's JavaScript engine, it runs in the UI thread, using V8 on Android and JavaScriptCore on iOS, and you can call all the platform specific APIs directly, subclass and implement Java classes and Objective C classes and protocols, call methods and functions, and pass objects back and forth, write your own plugins in TypeScript, JavaScript, Java, Objective C, etc.

[1] http://docs.nativescript.org/angular/tutorial/ng-chapter-0

[2] https://www.nativescript.org/

[3] https://developer.apple.com/library/content/releasenotes/Int...

[4] http://tylergaw.com/articles/building-osx-apps-with-js

[5] http://developer.telerik.com/featured/javascript-os-x-automa...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: