Installation & Config
First, you should have an application developed based on React Native. We refer to the directory containing package.json as your application's root directory.
If you haven't initialized an application yet, please see Getting Started with React Native.
We assume you already have everything set up for React Native development, including Node.js, Xcode, Android SDK, etc.
If the app currently uses react-native-code-push or expo-updates, remove the old package first and follow the steps below; see the CodePush API migration guide or the Expo Updates migration guide for before-and-after code.
This page covers iOS and Android. For HarmonyOS NEXT apps built with RNOH, the native setup is in the HarmonyOS guide.
If your AI coding tool supports Skills, start with Install & Use Skills and let AI handle most of the installation, native checks, and wrapper changes for your current project. This page stays as the manual fallback for brownfield apps, custom workspaces, or teams reviewing every generated change.
Installation
Run the following commands in your project's root directory (if you use other package managers like yarn, substitute accordingly):
Please do not mix package managers like npm/yarn/pnpm and their associated lock files. Stick to one manager across your team and keep one format of the lock file.
Remember, any modifications under the ios or android directories require recompilation (using npx react-native run-ios/android or compiling inside Xcode/Android Studio) to take effect.
Manual Link
If RN version >= 0.60, you don't need this manual linking step.
Note: If you have a brownfield native-RN project, or monorepo, or any custom scenario, the auto-linking function might fail because custom configurations might be incomplete or not fit the standard RN directory structure. Even if RN version >= 0.60, you might still need manual link operation.
iOS
RN < 0.60 and using CocoaPods (Recommended)
- Add to
ios/Podfile:
- Run
pod installin theiosdirectory. - Recompile.
RN < 0.60 without CocoaPods
- In Xcode's Project Navigator, right click
Libraries➜Add Files to [Your Project Name] - Go to
node_modules➜react-native-update➜iosand selectRCTPushy.xcodeproj - In Xcode's Project Navigator, select your project. Under
Build Phases➜Link Binary With Libraries, addlibRCTPushy.a,libz.tbd,libbz2.1.0.tbd. - Under
Build Settings, search forHeader Search Path, add$(SRCROOT)/../node_modules/react-native-update/ios, and checkrecursive. - Under
Build Phases, add aNew Run Script Phasewith the following content:
- Attempt compilation. If successful, a
pushy_build_time.txtfile is generated inside../node_modules/react-native-update/ios/. Then, add the resultingpushy_build_time.txtintoCopy Bundle Resources.
Android
RN < 0.60 or other scenarios preventing auto-link
-
Add the following to
android/settings.gradle: -
Add this piece of code to the dependencies section inside
android/app/build.gradle: -
Open
android/app/src/main/java/[...]/MainApplication.java:
- Add
import cn.reactnative.modules.update.UpdatePackage;at the top of the file - Add
new UpdatePackage()inside thegetPackages()method (watch out for commas)
Configuring the Bundle URL
If you use expo 50+ and react-native-update >= 10.28.2, the bundle URL configures automatically. Skip straight to the next step.
If you don't use expo, or use an expo version under 50, manually follow the steps down below.
iOS
Add the following to the file that provides bundleURL. Starting with RN 0.88, the iOS template for new projects uses the UIScene life cycle (required for apps built with the iOS 27 SDK), so the React Native entry point and the bundleURL method moved from AppDelegate.swift to SceneDelegate.swift. Older versions keep it in AppDelegate.mm / AppDelegate.m / AppDelegate.swift (different RN versions have different file suffixes). Whichever file it lives in, it is the same bundleURL method you change.
Note: If your project mixes native apps with RN, ensure you do not directly assign the bundleURL while initializing the rootView. Always initialize bridge using initWithDelegate, then initialize rootView via initWithBridge. Otherwise, the updating feature will likely break.
When upgrading from RN 0.87 or earlier to 0.88, if you follow the Upgrade Helper and move the entry point to SceneDelegate, bring RCTPushy.bundleURL() over from your old AppDelegate (or ReactNativeDelegate) too. Otherwise Release builds keep loading the bundle embedded in the app and hot updates never take effect. For Objective-C projects, see the example project.
Android
Add the following piece of code inside MainApplication (if you package React Native as an AAR with @callstack/react-native-brownfield, or the host app does not use ReactApplication / ReactActivity, see Brownfield Integration):
Remember, any modifications under the ios or android directories require recompilation (using npx react-native run-ios/android or compiling inside Xcode/Android Studio) to take effect.
Overriding Android's onCreate
If your app uses react-native-screens through react-navigation, Android can show a blank screen after an OTA-triggered restart unless RNScreensFragmentFactory is registered in MainActivity.
Do not set the fragment factory in MainActivityDelegate. Register it in MainActivity itself.
For background and edge-case notes, see the react-native-screens Android documentation.
Adding A Deep Link For Testing
Deep links make OTA testing much easier because you can open a specific update payload directly from a QR code or test page.
In android/app/src/main/AndroidManifest.xml:
After you finish compiling the app and uploading the release package, Cresc can generate a QR code for OTA testing.

Enable the Use Deep Link option in the dashboard and enter the custom URL scheme you configured for the app.
If the release has just been uploaded, give the backend a short moment to prepare the test payload before scanning the QR code.
If you implement a custom update UI, read the update state from useUpdate() instead of trying to parse the deep-link payload yourself.
Disabling Android Image Crunch Operations
Android can automatically reprocess PNG assets during release builds. That makes binary diffs less predictable and can unnecessarily increase package size. Disable crunchPngs in the release build type:
Login & Creating Applications
Create an account and sign in at admin.cresc.dev, then use the CLI to authenticate locally:
The CLI stores working state in a local .update directory. Add .update to your .gitignore so temporary metadata does not enter source control.
Then create or select the app records that match your iOS and Android packages:
Keep the names distinct if you manage iOS and Android separately.
If the app records already exist, select them locally instead:
This writes update.json into your project:
Commit update.json so the app can resolve the correct appKey during builds.
At this point you are ready for Code Integration.