NativeScript modules
The NativeScript team made sure that the NativeScript platform was developed in a modular fashion, much like plugins, which allow us to include only the modules that we need in our development.
These modules provide us with the abstraction of native APIs, and allow us to write code that works on both platforms. NativeScript has separate APIs for each logical functionality. For example, if you want to use SQLite for your storage needs, there is a package for that; if you want to use a filesystem, there is a package for that.
Let's take one example to see how these NativeScript modules help us write consistent code for a multiplatform environment. If you want to access a filesystem on the native platform using NativeScript, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access