I’m new to NativeScript and this community. I’ve gone though the Hello World and Groceries tutorials and I have a number of questions regarding NativeScript development before I start my new app with it. I originally develop apps in Titanium, and I find that while the concept is somehow similar, NativeScript is very very different.
So I guess I’ll start…
My question is about performance. When loading the app it probably needs to load the Angular framework, which probably takes time. And angular framework itself (with all it’s advantages) probably has some hit on performance.
So what is the best approach here? How bad (if at all) is using Angular affects the performance of the app?
Another performance question: In Titanium there was a “classic” project and a (newer) Alloy project where the UI can be defined in XML. But on compile, the XML is translated to JS code - to the “classic” version of it.
On NativeScript (and especially with Angular) my understanding is that XML is parsed on run-time and then evaluated in JS? doesn’t it make it slower?
In Titanium, upon compilation, all JS files are minified - is the process the same in NativeScript?
In the tutorial it’s teaching about the naming conventions “To give a specific example, the CLI moves platform.ios.css into platforms/ios and renames it to platform.css; similarly, the CLI moves platform.android.css into platforms/android, and again renames it to platform.css”.
What if there’s also a platform.css file with shared design for iOS and android - will it merge the 2 files?
When I was doing “Exercise: Using the ternary operator in templates” when I test it the text changes with a fadeout/fadein effect - what sets this effect? what if I just want to change text without the effect?
Once I initialized a new NativeScript project and there is a new release, how do I upgrade my project to use new features? In Titanium I just had to change the SDK version in a configuration file.
If I have logic that I need to run specifically for iOS or Angroid, how do I do it in the same codebase, without separating logic files specifically for iOS/Android ?
Imports at the router level actually causes angular to load all the files in advanced - wouldn’t that make the app load slower if there are a lot of pages?
In Titanium I could expand Titanium abilities by writing a native module (either in java or objective-c) and use it in my app (for example I wrote my own notifications handler in Android that has my own logic upon notification) - can I write such modules in NativeScript?
I guess that’s it for starters. Would appreciate the help in understanding the platform better.