NativeScript: love or hate?

Aliaksei Bahachuk

Prehistory
Girl

Parents

WHO?
Telerik




Telerik
No money
Open Source - Now and Forever
NativeScript is licensed under the very permissive Apache 2 license.


Enterprise Support

Before the meeting
Social



GitHub
7,363

556
GitHub
187

Contributors

62

Version

Documentation - appearance

Met the NativeScript
First meeting

No DOM


!==
No cross compilation

!==

Direct access to Native API

!==

Cross platforms
NativeScript runs on a pre packaged JavaScript virtual machine

WebKit JavaScript Core
Google V8




Cross platforms

You can choose
JavaScript
TypeScript
+ Angular2



UI thread


Native Layouts





Absolute
Dock
Grid
Stack
Wrap
How does it work?

How does it work?
var time = new android.text.format.Time();
time.set(1, 0, 2015);
console.log(time.format("%D"));

How does it work?
android.text.format.Time


metadata
Reflection


How does it work?
var time = new android.text.format.Time();


Android NJI
callback(...)
proxy Time
How does it work?

Plug and Play
Use native libraries for each platform
Shared UI styles through CSS
Use JS libraries


Ideal

First surprise
Angular2 + NativeScript
Version: 0.2.0

Angular directives support is limited
Router/Form modules


First lie
Cross Platform





Hmmmmm...
First truth
UI thread only

Heeeellooooo

I don't like your friends!
Npm modules with DOM or Node dependencies



No more girls!
Preprocessors

Anything else?
NS modules
Not all modules support both platforms
You need to write special js code for iOS and Android platforms
289
NS modules

And I can't cook...
Debugging

Debugging: Node inspector

Sources
Console
Debugging 0
-
No Source-Map
-
No Network
-
No Element Inspector
-
No Performance
-
The console logs are not colored
Debugging 0
VERY long reload time:
*Win 10
debugger ~ 20s
livesync ~ 50s
build ~ 3m

Debugging 0
VERY long reload time:
*Win 10
livesync: you can't add resources ~ rebuild + debug
livesync doesn't support debug ~ livesync + debug

Future ...
Roadmap

Roadmap v2.2
Roadmap v2.3
Love or Hate?
I'll call your later...
But now...

Thank you!
Questions?
Resources
https://ru.wikipedia.org/wiki
https://theinfosphere.org/Fry-leela_relationship
http://futurama.wikia.com/wiki/
http://wallpapershome.ru/filmi/multfilmi/zveropolis-lenivec-8017.html
http://www.telerik.com/
https://www.nativescript.org/
http://www.deviantart.com/morelikethis/574027227
NativeScript Futurama
By Aliaksei Bahachuk
NativeScript Futurama
Love or Hate?
- 1,393