πŸš€ 8.9 Released! β†’ ⚑️ New Node-API Engine Preview, πŸ“² ns widget ios, πŸ’… Tailwind v4 and more...
Read Announcement

Generate types for iOS ​

bash
nstypingsios

This will generate the following folder structure typings/ios/arm64

Generate types for Android ​

For Android run:

bash
nstypingsandroid--jar<pathtoajar>
# or
nstypingsandroid--aar<pathtoanaar>

You can also generate typings for an Android package (Maven):

bash
nstypingsandroid<package-name>

For instance:

bash
nstypingsandroid"com.google.android.gms:play-services-tasks"

Custom code ​

  1. Reference the generated types in references.d.ts
  2. You can now code against the platform native APIs (strongly typed). For various examples on how to interact with native APIs in JavaScript/TypeScript, visit the Subclassing, iOS Marshalling and Android Marshalling pages.

Additional Resources ​

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /