Install
The SDK is on the public package registries: npm, Maven Central and Swift Package Manager. You can build and try everything without a license key; you need one when you release your app (see License key).
- Web
- React Native
- Android
- iOS
npm install @nitrakit/web # or @nitrakit/react, @nitrakit/vue, @nitrakit/svelte, @nitrakit/angular
The framework packages build on @nitrakit/web and install it for you. Then follow
JavaScript or your framework's page.
npm install @nitrakit/react-native react-native-nitro-modules
- iOS: the native SDK ships inside the package. Run
pod install. - Android: Gradle gets the native SDK from Maven Central, which React Native apps use already.
- Expo: add the config plugin and use a development build; see React Native.
app/build.gradle.kts
dependencies {
implementation("dev.nitrakit:nitrakit:0.2.0")
}
The SDK is on Maven Central; mavenCentral() is in Android projects' repositories by default.
The Swift package is at https://github.com/Nitrakit/nitrakit-swift.
-
Xcode: File → Add Package Dependencies, enter the URL, and add the
NitrakitandNitrakitUIproducts to your app target. -
Package.swift:
dependencies: [.package(url: "https://github.com/Nitrakit/nitrakit-swift", from: "0.2.0")],// in your target:.product(name: "NitrakitUI", package: "nitrakit-swift"),
Versions
All packages share one version number and are released together. Use the same version on every platform you ship.