Mosmoxmosmox

Mosmox journal

In focus — New Architecture.

A selection of publications grouped under the New Architecture tag.

React Native 0.89: An Upgrade Checklist for Apps with Custom Native Modules

React Native 0.89: An Upgrade Checklist for Apps with Custom Native Modules

React Native 0.89 is in the release candidate stage: 0.89.0-rc.4 shipped on December 1, 2026, and the official schedule targets the stable release for December 7. Unlike 0.88, which the team described as having no user-facing breaking changes, 0.89 removes a large layer of legacy APIs: bridgeless can no longer be switched off on Android, old initializers and parts of RCTBridge disappear on iOS, and native modules have to regenerate code and pass stricter compiler checks. If your app has custom native modules or is embedded in a native app (brownfield), plan this upgrade ahead of time. Below is a checklist based on the rc.0 release notes and the later RCs.

When and why to upgrade

React Native supports the latest three minor versions. Once 0.89 ships, 0.89, 0.88 and 0.87 stay supported and 0.86 reaches the end of its cycle. The next version, 0.90, is scheduled for February 8, 2027. If you are on 0.86 or older, the upgrade decision is due now, and going through 0.89 will be a required step.

There is also the iOS 27 SDK. As the 0.88 release post reminds, Apple requires the UIScene lifecycle, and UIKit apps built with Xcode 27 without it fail to launch. SceneDelegate support arrived in 0.88, so if you have not moved to 0.88 yet, the 0.89 upgrade has to cover this too.

Android: bridgeless without an off switch

  • DefaultNewArchitectureEntryPoint.bridgelessEnabled is removed, along with the three-argument load(turboModulesEnabled, fabricEnabled, bridgelessEnabled) overload. In the New Architecture, bridgeless is always on.
  • Also removed from the same class: fabricEnabled, turboModulesEnabled, concurrentReactEnabled and isConfigurationValid. If MainApplication or your brownfield code reads these flags, the build will fail.
  • TurboModules with pre-generated JNI code must regenerate it. Codegen CMake builds now use -Werror, so warnings you used to ignore become errors. The JavaTurboModule::invokeJavaMethod overload that takes cachedMethodID is deprecated.
  • rncore.h is removed. Include FBReactNativeSpec.h and call FBReactNativeSpec_ModuleProvider instead.
  • targetSdk is now 37, NDK r28c, and the Gradle plugin's minimum Kotlin API version is 2.1. The rc.0 notes mention two different Kotlin versions, so check the final one against the template after the stable release.
  • New: Activity Result API support for native modules (TurboModules), lineBreak and wordBreak text props on Android 13+, and TraceSection markers in Perfetto.

iOS: saying goodbye to parts of RCTBridge

  • RCTRootViewFactoryConfiguration loses the bridgelessEnabled property and the initializers with a bridgelessEnabled: parameter.
  • Legacy modules and APIs are removed: RCTNativeAnimatedModule, RCTTimingModule, RCTModuleData, RCTCxxBridgeDelegate, the RCTProfile systrace API, deprecated RCTBridge initializers and sourceURLForBridge: on RCTBridgeDelegate.
  • Deprecated: RCTBridge.bundleURL, setRCTTurboModuleRegistry:, bridgeModuleDecorator and other legacy RCTBridge APIs. The notes don't say whether these become removals in the final 0.89, but the signal is clear: code that depends on the bridge needs rewriting.
  • Nullability in RCTBridgeModule.h. constantsToExport is now nonnull, so a Swift override declared -> [AnyHashable : Any]! must become -> [AnyHashable : Any]. +moduleName is now optional.
  • CocoaPods with USE_FRAMEWORKS. React-cxxreact headers now install under cxxreact/. Pods that include <cxxreact/...> without install_modules_dependencies must add React_cxxreact.framework/Headers to HEADER_SEARCH_PATHS.
  • RCTAppSetupUtils.h no longer transitively imports HermesExecutorFactory.h, JSIExecutor.h or JSExecutor.h. If your code relied on them by accident, add explicit imports.

Swift Package Manager instead of CocoaPods

In the 0.88 post the team laid out the plan: make Swift Package Manager the default in 0.89, with an opt-out to CocoaPods for apps that are still blocked, and remove CocoaPods support in a later release. We did not find an explicit default switch in the RC notes, so verify the final behaviour in the stable release template. What has already changed in the RCs:

  • spm add and spm update write build settings to ReactNativeSPM/ReactNativeSPM.xcconfig and scripts to ReactNativeSPM/Scripts/. A custom xcconfig must #include the generated file, and a target setting that overrides React Native's value must include $(inherited).
  • pod install now fails for an app that uses SwiftPM. To go back to CocoaPods, run react-native spm deinit and then pod install; react-native spm add --deintegrate keeps the Podfile.

Keep in mind that the CocoaPods specs repository becomes read-only on December 2, 2026, so moving to SPM is a matter of time for any iOS project.

JavaScript, CLI and tooling

  • @react-native/community-cli-plugin is no longer auto-detected and must be listed in devDependencies. The Community CLI platform registration config is removed from react-native, and @react-native-community/cli 21.x is required.
  • @react-native/assets-registry is removed. Use AssetRegistry from react-native and @react-native/asset-utils.
  • unstable_batchedUpdates is deprecated. Search for it in your code and dependencies: some state and list libraries still use it.
  • Removed props: blurOnSubmit on TextInput (use submitBehavior), hasTVPreferredFocus on View, unstable_getScrollParent on ScrollView.
  • Behaviour changes: scrollToLocation on SectionList now accounts for section and sticky headers, and an explicit fadeDuration on Image is no longer ignored. In rc.2, iOS contentInsetAdjustmentBehavior pads content by the larger of the safe area or the contentContainerStyle padding, not their sum. None of these break the build, but they can shift layouts, so check them visually.
  • Hermes and Metro: Hermes is bumped, the CLI's default transform profile is 'hermes-stable', and the minimum Metro version is 0.87.2. @babel/plugin-transform-destructuring is turned off.
  • C++: AccessibilityState::selected is now std::optional<bool>, and Geometry.h and conversions.h are removed from react/renderer/graphics.

Useful additions

  • A useAppState() hook instead of manual AppState subscriptions.
  • structuredClone and DOMException as globals; structuredClone now handles ArrayBuffer, typed arrays and Error subclasses.
  • Polyfills for Array.prototype.toSorted and toReversed when the engine lacks them.
  • An experimental experimental_onSafeAreaInsetsChange prop on View.
  • On iOS, AccessibilityInfo.isShowBordersEnabled(), plus StatusBar.getVerticalBarEdgeIOS() and useVerticalBarEdgeIOS() in rc.2.
  • In DevTools, WebSocket inspection in the Network panel (rc.1); C++ Native Animated is promoted to stable (rc.2).

Upgrade checklist

  1. Inventory native code. List your own native modules and third-party libraries with native parts. For each, check whether a release supports 0.89 and whether it uses removed RCTBridge APIs.
  2. Android. Remove every reference to the DefaultNewArchitectureEntryPoint flags, regenerate TurboModule JNI code and fix warnings that -Werror turns into errors. Replace rncore.h with FBReactNativeSpec.h.
  3. iOS. Drop bridgelessEnabled from root view setup, fix Swift constantsToExport overrides, and add explicit imports instead of the transitive ones from RCTAppSetupUtils.h. With USE_FRAMEWORKS, check cxxreact header paths.
  4. SPM or CocoaPods. Decide whether you move to SPM now or deliberately stay on CocoaPods, and check custom xcconfig files for #include and $(inherited).
  5. JS and tooling. Add @react-native/community-cli-plugin to devDependencies, upgrade @react-native-community/cli to 21.x, and replace @react-native/assets-registry, blurOnSubmit and unstable_batchedUpdates.
  6. UIScene. If you are not on 0.88 yet, move the entry point to SceneDelegate: it is required to build against the iOS 27 SDK.
  7. Visual regression. Check screens with SectionList, contentInsetAdjustmentBehavior and images with fadeDuration.
  8. Release builds on real devices. Most bridgeless and native module issues only show up in the release configuration.

The Upgrade Helper is the easiest way to compare project templates: after the stable release it will show the exact diff between 0.88 and 0.89.

Conclusion

0.89 is the release where React Native effectively closes the New Architecture transition: bridgeless is no longer optional, the legacy parts of RCTBridge are going away, and the iOS build moves from CocoaPods to Swift Package Manager. For a pure JavaScript app the upgrade will be fairly simple. For apps with custom native modules, partner SDKs or a brownfield integration, the best time to start is now, on the RC: the week before the stable release is just enough to list incompatibilities and talk to dependency authors.

Journal

Ideas and products