NativeScript application with native code in App_Resources
The native (Java) code for Android is located in <project dir>/app/App_Resources/Android/src/main/java
directory. It is a simple class that logs output in the logcat.
The native (Objective-C) code for iOS is located at <project dir>/app/App_Resources/iOS/src
directory. Note that you need to have module.modulemap
file to be able to call your method from JavaScript.
To test this application just clone it (or use tns create myApp --template https://github.com/rosen-vladimirov/appNativeCode/tarball/master
) and use tns run <platform>
command.
You need NativeScript CLI 5.2.0 or later.