Builds and upgrades
Build a release, manage the native projects, and apply SDK migrations.
The starter creates two native projects that belong to your app. Commit ios/ and android/ alongside your TypeScript. Set the bundle identifier, signing team, capabilities, and deployment settings in Xcode. Manage the Android application ID, manifest, build variants, and release signing in the Gradle project.
app.json connects the CLI to those projects. The starter uses src/index.tsx as the JavaScript entry, ios/ReactNitro.xcodeproj as the Xcode project, and ReactNitro as the scheme. If you rename a project or scheme, update the corresponding ios.project or ios.scheme setting. Set ios.target if the scheme builds multiple app targets.
Build a release
From the app directory, check the TypeScript and build the platform you want to test.
bun run typecheck
bun run ios --build-only --release
bun run android --build-only --releaseRelease builds compile React, its reconciler, and the React Nitro renderer to native code with Static Hermes. Xcode links the framework into the iOS app. On Android, the NDK links it into libReactNitroRuntime.so for each ABI. App components load from Hermes bytecode on both platforms.
Imported images and fonts become native resources during the build. To open a release on a target, run bun run ios --device <simulator-UDID> --release or bun run android --device <adb-serial> --release. Store signing and distribution stay with the app's native projects.
Upgrade the SDK
Update the CLI and renderer together. Align any directly installed React Nitro packages, such as navigation or networking, to the same release. Then inspect the pending native changes.
bun add react-nitro-cli@latest react-nitro-renderer@latest
bun run react-nitro upgradeEach platform records its native project revision in ios/react-nitro.json or android/react-nitro.json. If the installed SDK requires a newer revision, the CLI points to its migration guide. Apply the changes to your app-owned project and build that platform. For example, after validating an iOS migration, record it with bun run react-nitro upgrade --complete --platform ios and commit the updated project and revision file together.
Package updates that keep the same native revision only need the package changes. Commit the dependency manifest and lockfile so another developer can build with the same SDK.