Skip to content

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, columnGap and rowGap props now accept % strings, and transform accepts % for translate transformations. These features are available only on the New Architecture.
  • New Architecture stabilization and safe jsi::Runtime access: Fixes include adjustsFontSizeToFit and textAlign with inline views on Android, and text baseline on iOS. APIs for thread-safe jsi::Runtime access from Turbo Native Modules, plus CallInvoker with invokeAsync, 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 init now shows a warning and will stop creating projects after that date. Use a framework command such as npx create-expo-app or npx @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/getSizeWithHeaders return a promise without a success callback, and requestIdleCallback is implemented on the New Architecture. Android adds the resizeMultiplier Image prop. React is upgraded to react@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: TouchableOpacity and TouchableHighlight are now functional components and can't be used as types. Use useRef<React.ElementRef<typeof TouchableHighlight>>() or useRef<View>() instead.
  • Android: com.facebook.react.bridge.JSIModule has been deleted. Use Turbo Native Modules instead.
  • Android: UIManagerModule.showPopupMenu() and UIManagerModule.dismissPopupMenu() were removed. Use the <PopupMenuAndroid /> component from the @react-native/popup-menu-android package.
  • iOS: the deprecated PushNotificationIOS methods didReceiveLocalNotification and didReceiveRemoteNotification were deleted. Use didReceiveNotification:(UNNotification *)notification instead.
  • Community CLI: the ram-bundle and profile-hermes commands were removed. CPU profiling is available from the "Profiler" panel in the Experimental New Debugger.
  • TextInput: the deprecated onTextInput callback was removed. Pressability's deprecated _DEPRECATED methods were also removed.
  • Codegen: pure C++ TurboModule classes and structs drop the Cxx token, float enums are no longer supported, and passing null from JS to a non-nullable native argument now throws.
  • Android: ReactContext and ReactApplicationContext are now abstract; use BridgeReactContext or BridgelessReactContext. RTL layout now requires android:supportsRtl="true".
  • iOS CocoaPods: BUILD_FROM_SOURCE is renamed to RCT_BUILD_HERMES_FROM_SOURCE, and React-Codegen is renamed to ReactCodegen.
  • 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(), and no-string-refs is 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