Use Objective C, Swift and Java api’s in NativeScript for Angular iOS and Android apps
Learn how to code against native APIs in NativeScript for Angular. Access Objective C, Swift, and Java libraries directly from JavaScript/TypeScript. Build custom view components for iOS and Android. Develop plugins to share with the community. Get intellisense for iOS and Android APIs. Convert Swift libraries to NativeScript. Create consistent plugin APIs for Android and iOS. Discover CocoaPods, Gradle, and Android Arsenal for native libraries. Handle cases where a plugin only supports one platform. Join this course to enhance your NativeScript skills.
NativeScript has the ability to write Objective C, Swift and Java apis directly from JavaScript and TypeScript.
In this course, we will learn how to code directly against these native api’s with NativeScript for Angular. Many libraries are written and published in these languages. With NativeScript you are no longer limited to just JavaScript based libs, but have direct access to these api’s right from JavaScript/TypeScript. Let’s look at how to include these native libraries internally to your project as well as build public plugins to share with the community.
We will cover some considerations with Objective C and Swift based libraries as well as Java/Android libraries. You can think of CocoaPod, Gradle, and Android Arsenal like npm for native libs. iOS libraries can be found via CocoaPods, Android libraries can be found via Gradle or Android Arsenal.
Let’s also cover how to write custom view components based on native libs since there are considerations for both iOS and Android. Lastly we will learn how to best handle cases where a plugin/library only supports 1 platform.
Course Content
Prepare for native iOS and Android api intellisense with NativeScript
Use an Objective C library in NativeScript for Angular iOS app
Use Objective C Delegates in NativeScript for Angular iOS apps
Generate metadata TypeScript declarations for Objective C/Swift libraries on iOS
Use an Android library in NativeScript for Angular using Java apis
Translate common Java/Android APIs into NativeScript for Angular Android apps
Develop a consistent plugin api across your Android and iOS NativeScript app
Convert a Swift library to NativeScript for Angular iOS apps
Build a custom NativeScript view component for iOS
Build a custom NativeScript view component for Android
Develop a public NativeScript plugin using the nativescript-plugin-seed
Conditionally require a NativeScript plugin when only a single platform is supported