Skip to content

Upgrading react-native 0.59 to 0.60

Breaking0.59.10 → 0.60.6Breaking3New6Changed2Fixed12Other4

BreakingUpgrade verdict

3 breaking changes.

  • The built-in WebView and Geolocation modules are gone, so apps using them must install the separate packages.
  • Android projects must move to the newer AndroidX support libraries instead of the old Android support libraries.
  • Android projects now use the newer AndroidX libraries instead of the old support libraries, so existing native code and libraries may need updates.
3 items need code or config changes

react-native publishes an official migration guide for version 0.60. It covers more than the release notes do.

Upgrade helper webtool ↗

Adds @react-native-community/cli-platform-android ^2.6.0, @react-native-community/cli-platform-ios ^2.4.1, abort-controller ^3.0.0, hermesvm ^0.1.0, jsc-android 245459.0.0, metro-source-map ^0.55.0, scheduler 0.14.0, whatwg-fetch ^3.0.0.

Drops absolute-path, chalk, commander, compression, debug, denodeify, errorhandler, fs-extra, glob, graceful-fs, inquirer, lodash, mime, minimist, mkdirp, morgan, node-fetch, node-notifier, npmlog, opn, optimist, plist, react-clone-referenced-element, rimraf, semver, serve-static, shell-quote, ws, xmldoc, yargs.

Installs 703 packages in all (was 688).

Breaking3
Removes WebView and Geolocation entirely; use the extracted packages instead.
WebViewGeolocation
Adds AndroidX support, which is a breaking change.
Adds AndroidX support, which is a breaking change; library maintainers should follow the linked guidance.