React Native v0.75 released
0.75
React Native 0.75 ships Yoga 3.1 with percentage values for gaps and translations, stabilizes New Architecture APIs such as safe jsi::Runtime access, and recommends building apps with a framework like Expo. The template moves to its own package, react-native init is being sunset, and several legacy APIs are removed.
Highlights
- Yoga 3.1 with percentage values in layout: The
gap,columnGapandrowGapprops now accept%strings, andtransformaccepts%for translate transformations. These features are available only on the New Architecture. - New Architecture stabilization and safe jsi::Runtime access: Fixes include
adjustsFontSizeToFitandtextAlignwith inline views on Android, and text baseline on iOS. APIs for thread-safejsi::Runtimeaccess from Turbo Native Modules, plusCallInvokerwithinvokeAsync, are now stable. - Frameworks recommended; template moved out of core: The recommended way to build apps is now a framework such as Expo. The template moved from the react-native package to
@react-native-community/template, and new template issues go to its issue tracker. - react-native init sunset on December 31st 2024:
react-native initnow shows a warning and will stop creating projects after that date. Use a framework command such asnpx create-expo-appornpx @react-native-community/cli init. Other commands keep working. - Faster auto-linking on Android and iOS: The auto-linking logic was rewritten for faster builds. With Expo, the auto-linking step can run ~6.5x faster on Android and ~1.5x faster on iOS.
- New APIs and dependency updates:
Image.getSize/getSizeWithHeadersreturn a promise without asuccesscallback, andrequestIdleCallbackis implemented on the New Architecture. Android adds theresizeMultiplierImage prop. React is upgraded toreact@18.3.1. - iOS: DisplayP3 colors, SPM dependencies and visionOS Hermes: iOS adds basic DisplayP3 color support and a prebuilt Hermes for visionOS. Libraries can declare Swift Package Manager dependencies in their .podspec with
ReactNativePodsUtils.spm_dependency.
Breaking changes
- TypeScript:
TouchableOpacityandTouchableHighlightare now functional components and can't be used as types. UseuseRef<React.ElementRef<typeof TouchableHighlight>>()oruseRef<View>()instead. - Android:
com.facebook.react.bridge.JSIModulehas been deleted. Use Turbo Native Modules instead. - Android:
UIManagerModule.showPopupMenu()andUIManagerModule.dismissPopupMenu()were removed. Use the<PopupMenuAndroid />component from the@react-native/popup-menu-androidpackage. - iOS: the deprecated PushNotificationIOS methods
didReceiveLocalNotificationanddidReceiveRemoteNotificationwere deleted. UsedidReceiveNotification:(UNNotification *)notificationinstead. - Community CLI: the
ram-bundleandprofile-hermescommands were removed. CPU profiling is available from the "Profiler" panel in the Experimental New Debugger. - TextInput: the deprecated
onTextInputcallback was removed. Pressability's deprecated_DEPRECATEDmethods were also removed. - Codegen: pure C++ TurboModule classes and structs drop the
Cxxtoken, float enums are no longer supported, and passingnullfrom JS to a non-nullable native argument now throws. - Android:
ReactContextandReactApplicationContextare now abstract; useBridgeReactContextorBridgelessReactContext. RTL layout now requiresandroid:supportsRtl="true". - iOS CocoaPods:
BUILD_FROM_SOURCEis renamed toRCT_BUILD_HERMES_FROM_SOURCE, andReact-Codegenis renamed toReactCodegen. - Linting: the React Native ESLint config no longer runs Prettier during ESLint.
Upgrading
- 0.75 is the last version supporting minSdk 23 (Android 6.0) and minIOSVersion 13.4. Starting with 0.76, minSdk will be 24 (Android 7.0) and minIOSVersion 15.1.
- To create a new project, run
npx @react-native-community/cli@latest init MyProject --version latest. - Expo users can use React Native 0.75 with Expo SDK 51.
- Percentage values in gaps and translate require the New Architecture. In 0.75.1, % border radii and % translate were gated off on Android Paper.
- Jest now runs with a React global flag that requires
act(), andno-string-refsis now a lint error. Check your tests and lint setup after upgrading. - With 0.75 as the latest stable version, 0.72.x is now unsupported.
- Compare template changes in the Upgrade Helper.
Patch releases
| Version | Released |
|---|---|
| 0.75.5 | 2025-02-06 |
| 0.75.4 | 2024-10-02 |
| 0.75.3 | 2024-09-11 |
| 0.75.2 | 2024-08-20 |
| 0.75.1 | 2024-08-15 |
| 0.75.0 | 2024-08-14 |