Upgrading React Native from 0.76 to 0.78: Steps and Fixes
Upgrade a React Native app from 0.76 to 0.78 in two steps: the 0.77 AppDelegate change, Android 15, Metro logs, React 19 and the defaultProps trap.
Hamza El Haissouf
4 min readUpdated EN

Key takeaways
- On iOS, 0.77 needs the RCTAppDependencyProvider line in AppDelegate; deleting it hides the build error and breaks third-party modules at runtime.
- React 19 no longer applies defaultProps on function components, so replace them with default parameters before screens receive undefined.
- With targetSdk 35, Android 15 forces edge-to-edge display, so check every screen for content under the system bars.
- Leave existing forwardRef code alone during the upgrade: it keeps working, and new code can take ref as a regular prop.
- Test debug and release builds on real devices before merging, because simulators hide memory, camera and keyboard issues.
Short answer
Upgrade in two steps, each on its own branch: 0.76 to 0.77 for the native template changes, then 0.77 to 0.78 for React 19. Apply the Upgrade Helper diff for your exact versions, upgrade one library at a time, and get the app building and running between the two steps.
I upgraded a production React Native app from 0.76 to 0.78. This is the path that worked, the errors I hit and how I fixed them, checked against the official release notes for 0.77 and 0.78.
Upgrade in two steps, not one
Going straight from 0.76 to 0.78 mixes two sets of changes and makes every error harder to trace. Do it in two steps, each on its own branch, and get the app building and running between them:
- 0.76 → 0.77: native template changes on iOS and Android.
- 0.77 → 0.78: React 19.

For each step, open the React Native Upgrade Helper with your exact versions and apply the diff file by file. Upgrade one library at a time: never React Native and your navigation library in the same commit.
Step 1: 0.76 → 0.77
iOS: add the dependency provider
0.77 changes how the app loads third-party native dependencies. The template gets a new import and one new line in AppDelegate.mm:
#import <ReactAppDependencyProvider/RCTAppDependencyProvider.h>
// inside application:didFinishLaunchingWithOptions:
self.dependencyProvider = [RCTAppDependencyProvider new];
If the line is missing, the app can build and then fail at runtime. The new template is written in Swift (AppDelegate.swift), but you don't have to switch: the Objective-C++ version is still supported, as long as it has this line.
The error I hit:
No visible @interface for 'RCTAppDelegate' declares the selector 'dependencyProvider'
It means the line is in your AppDelegate, but Xcode is still compiling against the 0.76 headers, where the property doesn't exist. Make sure react-native is at 0.77 in package.json, reinstall the pods and clean the build:
cd ios
rm -rf Pods Podfile.lock build
pod install --repo-update
Keep the line. Deleting it makes the error go away and breaks third-party modules at runtime.
iOS: CocoaPods can't download cmake
[!] CDN: trunk URL couldn't be downloaded: cmake
This one is a CocoaPods CDN problem, not React Native. Clear the cache and retry:
cd ios
pod deintegrate
pod cache clean --all
rm -rf Pods Podfile.lock
pod install --repo-update
Android: Kotlin 2, Android 15 and 16 KB pages
- 0.77 builds against Kotlin 2.0.21. Native modules written in Kotlin may need an update.
- With
targetSdk35, Android 15 forces edge-to-edge display: content can slide under the status and navigation bars.react-native-safe-area-contexthandles the insets, but check every screen. - 0.77 adds support for 16 KB memory pages, which Google Play requires for new apps and updates targeting Android 15 or higher. I covered it in a separate guide on 16 KB page size.
Tooling: two things that disappear
npx react-native initis gone. New projects usenpx @react-native-community/cli initor a framework such as Expo.- Metro no longer streams
console.logto the terminal. Use the Console panel in React Native DevTools. From 0.77.1 and 0.78 you can bring terminal logs back withnpx @react-native-community/cli start --client-logs, but the flag is temporary.
Step 2: 0.77 → 0.78 and React 19
0.78 brings React 19. Most of the work is in your JavaScript, not in native code.

propTypes and defaultProps
React 19 removes propTypes checks: they are silently ignored. Nothing crashes, but you lose those warnings, so move the checks to TypeScript.
The change that actually breaks screens is defaultProps on function components, which React 19 no longer applies. A component that relied on them now receives undefined. Search your code and your libraries, and use default parameters instead:
// Before
function Badge({ label }) { /* ... */ }
Badge.defaultProps = { label: "New" };
// After
function Badge({ label = "New" }) { /* ... */ }
For a library that still sets defaultProps on a function component, look for an updated version first, and patch it with patch-package only if there is none.
Refs and forwardRef
Function components can now receive ref as a regular prop, so new code doesn't need forwardRef. Existing forwardRef code keeps working: don't rewrite it during the upgrade.
Optional: React Compiler and XML drawables
- The React Compiler now takes one package and a Babel plugin. Components it optimizes show a
Memo ✨badge in React Native DevTools. Try it once the upgrade is stable, not during it. - On Android, the
Imagecomponent can load XML vector and shape drawables you import. They need an explicit width and height, andreact-native-svgremains the cross-platform option.
Test before you merge
- App launches on iOS and Android, in debug and release builds
- Navigation, deep links and the Android back button
- Push notifications received and opened
- Every native module you use (camera, maps, payments…)
- Screens under the status bar on Android 15 (edge-to-edge)
- Hermes enabled
- Signed release build installed on a real device
- End-to-end tests, if you have them
Test on real devices: simulators hide memory, camera and keyboard issues.
Going further than 0.78
The same method works for every later version: one minor version at a time, the Upgrade Helper for the diff, one library at a time, and a working build between each step. If your app is several versions behind or blocked on Google Play, that's what my Play-Ready Rescue offer covers.
Stuck on a React Native upgrade? Book a 30-minute call or see my React Native development service.
Frequently asked questions
How do I fix "No visible @interface for 'RCTAppDelegate' declares the selector 'dependencyProvider'"?
Xcode is still compiling against the 0.76 headers. Make sure react-native is at 0.77 in package.json, delete Pods, Podfile.lock and build in the ios folder, run pod install --repo-update, and keep the dependencyProvider line.
Do I have to switch AppDelegate to Swift in React Native 0.77?
No. The new template is written in Swift, but the Objective-C++ AppDelegate.mm is still supported, as long as it has the dependency provider line.
How do I fix "CDN: trunk URL couldn't be downloaded: cmake" during pod install?
It is a CocoaPods CDN problem, not a React Native one. In the ios folder, run pod deintegrate and pod cache clean --all, delete Pods and Podfile.lock, then run pod install --repo-update.
Where did console.log go in React Native 0.77?
Metro no longer streams it to the terminal. Use the Console panel in React Native DevTools. From 0.77.1 and 0.78 you can bring terminal logs back with npx @react-native-community/cli start --client-logs, but the flag is temporary.
What breaks when React Native 0.78 moves to React 19?
Mostly JavaScript. propTypes checks are silently ignored, and defaultProps on function components are no longer applied, so those components receive undefined. For a library that still uses them, look for an updated version first and patch it with patch-package only if there is none.
Does React Native 0.77 support 16 KB page sizes?
Yes. 0.77 adds support for 16 KB memory pages, which Google Play requires for new apps and updates targeting Android 15 or higher.

Hamza El Haissouf
Full-stack developer for 6 years · Morocco
I build WhatsApp assistants and websites for private clinics and logistics companies. Remote, in English and French.
Related reading

