Migrating to React Native v0.78.0
Version v0.78.0 introduces 9 breaking changes. This guide details how to update your code.
Released: 2/19/2025
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
FuseboxClient.setClientMetadataReactNativeApplication.enableFrescoBasedReactTextInlineImageViewManagerpointerEventsRootViewGuardedResultAsyncTaskFabricViewStateManagerComponentNameResolverRawValueconsole.tableTextPropsStateWrapperImpl.getStateTextInput.disableKeyboardShortcutsNativeIntersectionObserverEntryBreaking Changes
●Issue #1
Codegen: Component array types and command array types are now separated.
●Issue #2
React Native devTools: The FuseboxClient.setClientMetadata CDP method is removed. Use ReactNativeApplication.enable instead.
●Issue #3
Android: FrescoBasedReactTextInlineImageViewManager visibility changed to internal.
●Issue #4
Android: pointerEvents API migration breaks compatibility for Kotlin usages where it was accessed as a val.
●Issue #5
Android: RootView converted to Kotlin, which may affect inheritance or access in native code.
●Issue #6
Android: GuardedResultAsyncTask abstract class has been deleted.
●Issue #7
Android: FabricViewStateManager class has been deleted.
●Issue #8
Android: ComponentNameResolver removed from the public API.
●Issue #9
iOS: Image load event size info changed from logical size to pixel size.
Migration Steps
- 1Replace FuseboxClient.setClientMetadata calls with ReactNativeApplication.enable in devTools integrations.
- 2Update Kotlin implementations using pointerEvents to accommodate API changes from val to the new structure.
- 3Update iOS Image event handlers to account for dimensions being returned in pixels instead of logical points.
- 4If using FabricViewStateManager or GuardedResultAsyncTask on Android, switch to modern alternatives as these classes are removed.
Release Summary
This release introduces breaking changes to Android and iOS APIs, including the removal of several Android classes and a change in iOS Image event units. Key additions include improved console.table support, system font support on iOS, and enhanced Codegen capabilities.
Need More Details?
View the full release notes and all changes for React Native v0.78.0.
View Full Changelog