Skip to content

React Native v0.64.x released

0.64.x

React Native 0.64 brings opt-in Hermes support on iOS, enables Inline Requires by default in new projects, adds Proxy support to Hermes and upgrades to React 17. It also raises platform requirements: Android API 21+, Xcode 12, CocoaPods 1.10 and Node 12. Several long-deprecated APIs are removed.

Highlights

  • Hermes opt-in on iOS: Hermes can now be used on iOS. Set :hermes_enabled => true in use_react_native! in your Podfile and run pod install. Support is still early stage and remains opt-in while further benchmarking is done.
  • Inline Requires enabled by default: New projects' metro.config.js enables inlineRequires by default, delaying execution of JavaScript modules until they are used to improve startup time. This gives a performance benefit but slightly different JS execution order.
  • Hermes Proxy support and Chrome traces: Hermes is upgraded to version 0.7 with ES6 Proxy support, enabling compatibility with projects like react-native-firebase and mobx. You can also use the Performance tab in Chrome DevTools to visualize execution of apps running on Hermes.
  • React 17: React Native now uses React 17. The main change for apps is the new JSX transform, so files no longer need to import React to use JSX.
  • New APIs and props: TextInput supports onPressIn and onPressOut; DeviceEventEmitter and NativeEventEmitter gain listenerCount(). On Android: android_hyphenationFrequency on Text, onProgress on Image, contentOffset on ScrollView, shadowColor on API level >= 28. On iOS: disableButtonsIndices for ActionSheetIOS.
  • Tooling and dependency updates: Flipper is bumped to 0.75.1 and Jest to 25. On Android, Gradle Wrapper is bumped to 6.7 and Android Gradle Plugin to 4.1.0. The iOS template is updated to Xcode 12 and sets NSAllowsArbitraryLoads to false by default.

Breaking changes

  • Android: support for API levels 16 through 20 is removed; minSDK is now 21+.
  • Minimum supported Node version is now 12. Xcode 12 and CocoaPods 1.10 are required.
  • Deprecated CameraRoll API and CheckBox component are removed.
  • The DEPRECATED_sendUpdatedChildFrames prop is removed from ScrollView; on iOS, calculateChildFrames is removed from RCTScrollView.
  • On Image, onLoad event objects' source.url is renamed to source.uri. On Android, onLoad and onError event objects no longer have an extra uri property.
  • once() and removeCurrentListener() are removed from DeviceEventEmitter and NativeEventEmitter.
  • Text.viewConfig is no longer exported. On Android, the undocumented ColorAndroid function is removed.
  • Android: ReadableArray null annotations are fixed, possibly breaking Kotlin apps. The PlayTouchSound method is deleted from UIManagerModule and moved to SoundManagerModule.

Upgrading

  • Set your Android minSDK to 21 or higher and make sure your environment uses Node 12+, Xcode 12 and CocoaPods 1.10.
  • Replace uses of CameraRoll, CheckBox, once() and removeCurrentListener(), and update Image onLoad handlers to read source.uri.
  • If you enable inlineRequires, check for code that depends on module execution order, since modules now execute when first used.
  • To try Hermes on iOS, set :hermes_enabled => true in your Podfile and run pod install.
  • Android: UIManagerModule.getUIImplementation is deprecated and will not be part of the new architecture of React Native.
  • Compare template changes in the Upgrade Helper.

Patch releases

Version Released
0.64.4 2022-11-07
0.64.3 2021-11-04
0.64.2 2021-06-03
0.64.1 2021-05-05
0.64.0 2021-03-12