1

Can I use the native JAVA/SWIFT code in NativeScript? I want to store the cookies into the cookie manager, but there is no plugin provided. So, is that possible to use the native code directly into NativeScript or I've to create a plugin myself for this task.n

1 Answers1

4

The answer is yes. You can write with native (iOS & Android) language in NativeScript which is the biggest benefit of the {N} framework but you can use Objective-C and Java not so sure about Swift (there are some ways to do so read here). I would recommend you to read this articles regarding the iOS and Android runtimes in NativeScript:

Here are some examples:

Community
  • 1
  • 1
Vladimir Amiorkov
  • 2,652
  • 3
  • 17
  • 35
  • is that the examples where we can use self created classes into NativeScript? – Raghavendra Shivhare May 23 '17 at 10:36
  • Please take a look at the full documentation here: http://docs.nativescript.org/runtimes/ios/Overview.html , you will find http://docs.nativescript.org/runtimes/ios/how-to/ObjC-Subclassing.html and http://docs.nativescript.org/runtimes/ios/how-to/Use-Native-Libraries.html and many more resources regarding how to use native code in NativeScript. – Vladimir Amiorkov May 23 '17 at 10:45
  • If this is not what you are after I suggest you to edit your initial post to indicated what exactly you are asking and trying to do. – Vladimir Amiorkov May 23 '17 at 10:46
  • I was trying to find the `tns-android` (as described in the link you shared for android earlier) but couldn't find that, do you've any idea where to use that folder. – Raghavendra Shivhare May 23 '17 at 11:07