Skip to content
Permalink
master
Switch branches/tags
Go to file
54 contributors

Users who have contributed to this file

@turnrye @kelset @hramos @grabbou @alloy @jeremy-deutsch @Titozzz @TheSavior @vonovak @Simek @rodrigobdz @rickhanlonii
3869 lines (2956 sloc) 480 KB

Changelog

v0.66.1

Fixed

  • For Android, general fixes to Appearance API and also fixes AppCompatDelegate.setDefaultNightMode(). For iOS, now works correctly when setting window.overrideUserInterfaceStyle (25a2c608f7 by @mrbrentkelly)

Android specific

iOS specific

v0.66.0

Highlights

  • Hermes 0.9.0
    • This Hermes release is primarily about closing gap between Hermes cut and this React Native release. Among ~400 commits, contains memory and size wins, bugfixes and other progress behind the scenes. See issue for more details.
  • Allow taps on views outside the bounds of a parent with overflow: visible (e35a963bfb by @hsource)
  • Fixes for building on Apple Silicon and Xcode 13 (ac4ddec542 thanks to @mikehardy)
  • New bluetooth permissions for Android (2bcc6fac38, eeb8e58 by @iBotPeaches)

Breaking

Android specific

Added

Android specific

iOS specific

Changed

Android specific

iOS specific

  • ScrollView scrollIndicatorInsets to not automatically add safe area on iOS13+ (bc1e602e0c by @justinwh)

Removed

Fixed

Android specific

iOS specific

v0.65.1

Changed

Fixed

Android specific

v0.65.0

Highlights

  • Hermes 0.8.1. Please see the highlighted changes from its 0.8.0 and 0.8.1 release notes.
  • react-native-codegen version 0.0.7 is now needed as a devDependency in the package.json.

Breaking Changes

iOS specific

  • Replace flipper_post_install with react_native_post_install hook. Will automatically detect if Flipper is enabled. (42dde12aac by @grabbou)

Added

Android specific

iOS specific

Changed

Android specific

iOS specific

Deprecated

  • EventEmitter#removeSubscription is now deprecated. (cb6cbd12f8 by @yungsters)
  • It is now deprecated to pass a constructor argument to EventEmitter(...). (14f7a2b707 by @yungsters)
  • Deprecate AccessibilityInfo.removeEventListener. (003d63d6e5 by @yungsters)
  • Deprecate Linking.removeEventListener. Instead, call remove() on the subscription returned by Linking.addEventListener. (6d1aca806c, 035718ba97 by @yungsters)
  • Old Native method to create ScrollEvent has been deprecated and will be removed at some point in the (distant) future (62f0dee235 by @JoshuaGross)

Android specific

  • Deprecate NativeModule.onCatalystInstanceDestroy() for NativeModule.invalidate() (18c8417290 by @RSNara)
  • Mark hasActiveCatalystInstance() as Deprecated (1b50722a7e)

Removed

  • Stabilize RootTagContext (9b98edcd01 by @nadiia)
  • Removed getNode() from animated component refs. (b914153286 by @yungsters)
  • Remove legacy context API usage in AppContainer (17be3a0032 by @nadiia)
  • Removed AccessibilityInfo.fetch, use isScreenReaderEnabled instead. (d831134d51 by @yungsters)
  • Remove unused VR-only props (95f7c791c5 by @Simek)
  • Removed RCTDeviceEventEmitter.sharedSubscribers. (3af0c84aa5 by @yungsters)
  • Moved ScrollResponder.Mixin methods into ScrollView to Remove ScrollResponder.js (099f67cf8a by @kacieb)
  • NativeEventEmitter no longer inherits from EventEmitter, so it no longer implements removeListener and removeSubscription. Instead, use the remove() method on the subscription object returned by addListener. (d39643b9de by @yungsters)
  • RCTDeviceEventEmitter no longer throws for StatusBar, Keyboard, and AppState events. However, you are still recommended to use the more appropriate modules for listening to these events. (c8c975f0d7 by @yungsters)
  • Removed second optional argument of NativeEventEmitter constructor (f5f47879b8 by @yungsters)
  • Removed warning on Android for setTimeout with delays greater than 1 minute. (480dabd665 by @yungsters)
  • Removed Touchable.TOUCH_TARGET_DEBUG property. (ef765d423c by @yungsters)

Android specific

iOS specific

Fixed

Android specific

iOS specific

v0.64.2

Changed

Fixed

Android specific

v0.64.1

Fixed

iOS specific

Security

v0.64.0

Breaking

  • Enable inlineRequires by default in new projects' metro.config.js. Gives a performance benefit but slightly different JS execution order (959365a902 by @GantMan)
  • Minimum supported Node version changed to 12 (4b92e2e53d by @safaiyeh)
  • Remove deprecated CameraRoll API (deprecated in 0.61) (824d3a9770 by @seanyusa)
  • Remove deprecated CheckBox component (deprecated in 0.60) (dff17effe5 by @poteto)
  • Removed DEPRECATED_sendUpdatedChildFrames prop from ScrollView component (deprecated in 0.47) (345d0c1abb by @ZHUANGPP)
  • On Image, onLoad event objects' source.url is now renamed to source.uri. (74ab8f6e5a by @yungsters)

Android specific

iOS specific

Deprecated

Android specific

  • Deprecated method UIManagerModule.getUIImplementation. This method will not be part of the new architecture of React Native. (fe79abb32c by @mdvacca)

Added

Android specific

iOS specific

Changed

Android specific

iOS specific

Removed

Android specific

Fixed

Android specific

iOS specific

v0.63.4

Changed

Android specific

Fixed

Android specific

iOS specific

v0.63.3

Added

iOS specific

  • Ability to set which configuration to enable flipper for when using use_flipper! (dc2df75426 by @nicoburns)

Changed

Fixed

Android specific

iOS specific

Security

v0.63.2

Fixed

Android specific

iOS specific

v0.63.1

Added

Android specific

Fixed

Android specific

iOS specific

v0.63.0

Breaking

  • The target field of events is now a native component, not a react tag (3b813cade1 by @TheSavior)
  • Modal: Remove support for animated prop (deprecated in 0.26) (1e9db7bd6d by @TheSavior)
  • Alert: Remove deprecated support for passing callback as fourth argument to Alert.prompt (deprecated in 0.59) (a26d622d04 by @TheSavior)
  • Switch: Remove support for thumbTintColor, tintColor, onTintColor props (deprecated in 0.57) (26912bd979 by @TheSavior)
  • Multiple deprecations and breaking changes to TextInputState. Use native component refs instead of react tags (6286270e4c by @TheSavior)
  • Bump supported Node engines to >= 10 (f0c7178a3a by @safaiyeh)

Deprecated

Android specific

  • We are deprecating the method UIManagerModule.resolveRootTagFromReactTag, this will not be supported in the next version of RN (acbf9e18ea by @mdvacca)
  • Add warning message for trying to use ToolbarAndroid which has been removed from the core since 0.61. (6249d14a61 by @Naturalclar)

iOS specific

Added

Android specific

  • Support item background color in Dialog Picker (22eb711c84)
  • Add OverrideColorScheme interface and setOverrideColorScheme method to AppearanceModule(45d7df6cf7)
  • Allow setting custom ripple radius on TouchableNativeFeedback (7f2a79f40b by @vonovak)
  • Add resizeMode prop support on TextInlineView (6871416328 by @mdvacca)
  • Added an API for checking if there are busy timers to TimingModule (22764e6cdc by @ejanzer)
  • Make packager location customizable in dev mode (3714f3648a)

iOS specific

Changed

Android specific

iOS specific

Removed

Android specific

iOS specific

  • Remove core RCTConvert CoreLocation Libraries (bcf2a716fb by @maschad)
  • Remove copyright notices from iOS application template (9c3fa57337 by @alloy)
  • Remove three properties: textColor, font and textAlignment from RCTBackedTextInputViewProtocol, unifying the usage into defaultTextAttributes. (aff6bad27c by @jimmy623)

Fixed

Android specific

iOS specific

v0.62.3

Security

Fixed

iOS specific

v0.62.2

Fixed

iOS specific

v0.62.1

Fixed

  • Bump CLI to 4.5.1 to improve DX (eac56b9749 by @alloy)
  • Fix a YellowBox regression in v0.62.0 where the Flipper network inspector causes YellowBox to crash the app due to using base64 images. (227aa96bb2 by @rickhanlonii)

Android specific

iOS specific

Changed

v0.62.0

This major release includes Flipper support by default, improved dark mode support, moving Apple TV to react-native-tvos, and more. See the blog post for all of the highlights.

This release comes in the midst of a global pandemic. We’re releasing this version today to respect the work of hundreds of contributors who made this release possible and to prevent the release from falling too far behind master. Please be mindful of the reduced capacity of contributors to help with issues and prepare to delay upgrading if necessary.

If you're upgrading, manual intervention may be required for your app. Please see the upgrade-helper for a detailed breakdown of the changes required and see this issue for known issues.

One known issue with workaround is regarding Android builds and APK size increases.

Breaking

Android specific

  • Fix setting keyboardType from breaking autoCapitalize (233fdfc014 by @safaiyeh)
  • Limit size of video uploaded from camera roll in android (< 100 MB) (d21f695edf)
  • Remove "Reload on JS change" from RN Android (478df155e7 by @cpojer)

Added

Android specific

iOS specific

Changed

Android specific

iOS specific

Deprecated

  • Add deprecation warning to AccessibilityInfo.fetch (523ab83338 by @TheSavior)
  • Make setting useNativeDriver required. Add runtime warning if not specified (5876052615 by @TheSavior)
  • Refs on an Animated component are now the internal component. The getNode call has been deprecated. (66e72bb4e0 by @yungsters)

iOS specific

Android specific

Removed

Android specific

Fixed

Android specific

iOS specific

v0.61.5

This is a patch release that consist of a few commits requested in the dedicated conversation to improve the quality of the 0.61 release. Thanks to everyone who contributed!

Fixes

Android specific

  • Fix bundling assets in monorepo (a3b0804867 by @Esemesek)
  • Fix multiple set-cookie not aggregated correctly in response headers (1df8bd4932 by Vincent Cheung)

v0.61.4

This is a patch release that consist of a few commits requested in the dedicated conversation to improve the quality of the 0.61 release. Thanks to everyone who contributed!

Fixed

iOS specific

  • Fix bug in iOS 13 when application would be terminated immediately when in background (d7c9173b07 by @radko93)

v0.61.3

This is a patch release that consist of a few commits requested in the dedicated conversation to improve the quality of the 0.61 release. Thanks to everyone who contributed!

Fixed

iOS specific

Android specific

v0.61.2

This is a patch release that consist of a few commits requested in the dedicated conversation to improve the quality of the 0.61 release. Thanks to everyone who contributed!

Fixed

Android specific

Added

iOS specific

Android specific

v0.61.1

This is a patch release that consist of a few commits requested in the dedicated conversation to improve the quality of the 0.60 release. Thanks to everyone who contributed!

Fixed

iOS specific

Android specific

  • Allow again for injecting custom root view via ReactActivityDelegate (9f0dede1c9 by @kmagiera)

v0.61.0

This is a major release that includes the new reloading experience Fast Refresh. It also removes the React .xcodeproj, fixes use_frameworks! for CocoaPods support, adds a useWindowDimensions hook, and upgrades to React 16.9.

Added

Android specific

iOS specific

Changed

Android specific

iOS specific

Deprecated

Android specific

  • DrawerLayoutAndroid drawerPosition now expects a string, number is deprecated (305b0a2814 by @TheSavior)

Removed

Android specific

iOS Specific

Fixed

Android specific

iOS specific

v0.60.6

This is a small patch release with a commit to fix the build break in MSVC to help the users of react-native-windows. (9833ee7bc1 by @acoates-ms)

v0.60.5

This is a patch release that consist of a few commits requested in the dedicated conversation to improve the quality of the 0.60 release. Thanks to everyone who contributed!

Added

Android specific

  • Add showSoftInputOnFocus to TextInput (d88e4701fc)

Changed

Fixed

Android specific

iOS specific

You can participate to the conversation for the next patch release in the dedicated issue.

v0.60.4

This is a patch release that contains two more Hermes related fixes, thanks to the contributors for helping improving the support!

Fixed

Android specific

You can participate to the conversation for the next patch release in the dedicated issue.

v0.60.3

This is a patch release that fixes the binary path to Hermes package, thanks to @zoontek) for creating the PR!

You can participate to the conversation for the next patch release in the dedicated issue.

v0.60.2

This is a patch release that fixes the path to Hermes package.

You can participate to the conversation for the next patch release in the dedicated issue.

v0.60.1

This is a patch release that includes the Hermes JavaScript Engine announced at Chain React Conf 2019.

Check out the documentation to opt-in and give Hermes a try.

You can participate to the conversation for the next patch release in the dedicated issue.

v0.60.0

This feature release of React Native includes many milestone changes for the platform. Please refer to the blog post for selected details. For upgrading users, some of the progress comes with breaking changes; manual intervention may be required for your app. We're also aware that existing CocoaPods integrations using use_frameworks are not out-of-the-box compatible with this version, but please consider various workarounds while we prepare a long-term solution for a future release. If you're interested in helping evaluate our next release (0.61), subscribe to the dedicated issue here.

Have you ever considered contributing to React Native itself? Be sure to check out Contributing to React Native.

Added

Android specific

iOS specific

  • Add announceForAccessibility and announcementFinished APIs for making screen reader announcements (cfe003238a by @rigdern)
  • Ability to force network requests to use WiFi using the allowsCellularAccess property. This can ensure that network requests are sent over WiFi if communicating with a local hardware device and is accomplished by setting a flag. Default behavior of allowing network connections over cellular networks when available is unchanged. (01c70f2fb9 and 916186a7e6 by @bondparkerbondand @zhongwuzw)
  • $RN_CACHE_DIR can now be used to manually specify the iOS build cache directory (845eee403e by @hramos)

Changed

Android specific

iOS specific

  • BREAKING: Split React.podspec into separate podspecs for each Xcode project; your libraries will need to update for this change as well to avoid CocoaPods build errors (2321b3fd7f by @fson)
  • Improve handling of native module exceptions; they are now propagated to crash reporting tools with the context and callstack (629708beda by @pvinis)
  • Switch Slider onSlidingComplete event to a non-bubbling event on iOS to match Android (7927437a6d by @rickhanlonii)

Deprecated

  • StatusBar is no longer deprecated; thank you for the feedback (a203ebe206 by @cpojer)

Removed

Fixed

Android specific

iOS specific

v0.59.10

This is likely the last patch release for version 59 of React Native for the foreseeable future: it contains an important Android side update for the JavaScript Core, to prevent a great number of crashes mostly related to Samsung devices - thanks to @Kudo for his work on fixing this via 557989a86f!

Thanks everyone who participated in the discussion.

v0.59.9

This is a patch fix release addressing a couple ScrollView regressions, and "future-proof" RN 59 from crashes caused by upgrading Gradle (now can support up to 5.4.1 & 3.4.0 for the plugin) and Xcode 11 Beta 1. You can upgrade to this version without upgrading your tooling.

Thanks everyone who contributed code or participated in the discussion for cherry-picking commits. You can participate to the conversation for the next patch release in the dedicated issue.

Changed

  • If isInteraction is not specified in the config, it would always default to true which would block interactions like VirtualizedList updates. This is generally not what you want with useNativeDriver since the animation won't be interrupted by JS. If something does end up interfering with an animation and causes frame drops, isInteraction can be set manually. (8f186b84ae by @sahrens)

  • Update detox to match master (c6a5c09e2b by @kelset)

Android specific

Fixed

Android specific

iOS specific

v0.59.8

This is a patch fix release addressing regressions, crashes, and a few developer-experience pain points (in particular, check the KeyboardAvoidingView change). Thanks everyone who contributed code or participated in the discussion for cherry-picking commits.

Fixed

iOS specific

Android specific

Added

Changed

  • Make KeyboardAvoidingView with behavior="height" resize on keyboard close (7140a7 by @WaldoJeffers)
  • Update network inspector to have smarter scroll stickiness (57dc37 by @AlanFoster)

v0.59.7

This patch release was unpublished.

v0.59.6

This patch release was unpublished.

v0.59.5

This is a patch fix release addressing regressions, crashes, and a few developer-experience pain points. Thanks everyone who contributed code or participated in the discussion for cherry-picking commits.

Fixed

Android specific

  • Enforced thread safety on UIImplementation methods that mutate the shadowNodeRegistry (f5a318 by @SudoPlz)
  • Fixed a NoSuchKeyException when parsing JS stack frames without line numbers (d7bd6c by @Salakar)
  • Fixed mostRecentEventCount is not updated (b8aac0 by @jainkuniya)

iOS specific

  • Pass back correct dimensions for application window in Dimensions module (72b4cc by @rdonnelly)
  • Fixed warning: "RCTImagePickerManager requires main queue setup" (effb02 by @scarlac)

v0.59.4

This is a patch fix release addressing regressions, crashes, and a few developer-experience pain points. Thanks everyone who contributed code or participated in the discussion for cherry-picking commits.

Changed

iOS specific

Fixed

Android specific

iOS specific

v0.59.3

This is a patch fix release addressing regressions, crashes, and a few developer-experience pain points. Thanks everyone who contributed code or participated in the discussion for cherry-picking commits.

Changed

Android specific

Fixed

Android specific

iOS specific

  • Show Perf Monitor after reloading JS (15619c22e5 by @usrbowe)
  • Fix TextInput's maxLength when inserting characters at begin (17415938c7 by @zhongwuzw)
  • Fix runtime crash in Xcode 10.2 when using RCT_EXTERN_MODULE for swift classes (ff66600224)

v0.59.2

This is a patch fix release addressing regressions, crashes, and a few developer-experience pain points. Thanks everyone who contributed code or participated in the discussion for cherry-picking commits.

Fixed

Android specific

iOS specific

Changed

Android specific

  • Add TLS 1.3 support to all Android versions using Conscrypt; to use this, you must add implementation('org.conscrypt:conscrypt-android:2.0.0') to build.gradle (75af15ede4 by @dulmandakh)
  • Turn off Metro JS Deltas by default for Android (845189c17d by @PeteTheHeat)

v0.59.1

This is a small patch release that addresses two critical issues from the 0.59.0 release.

Fixed

Android specific

iOS specific

v0.59.0

Welcome to release 0.59 of React Native! For highlights of this release, please view the dedicated blog post. Thanks to those who gave feedback during the release candidate phase. If you're interested in helping evaluate our next release (0.60), subscribe to the dedicated issue here.

Added

Android specific

iOS specific

  • TextInput now has prop rejectResponderTermination to enable TextInputs inside Swipeables to function properly (11df0eae5f by @cmcewen)
  • ActionSheetIOS has a new prop destructiveButtonIndexes for an Array<number> of destructive indexes (67e7f16944 by @sdg9)
  • Add isEventFromThisApp to KeyboardEvent notifications to disambiguate keyboard events when apps are running side-by-side (05f35c296d by @nossbigg)
  • Allow changing the project path in react-native-xcode.sh using env var PROJECT_ROOT (9ccde378b6 by @janicduplessis)

Changed

Android specific

iOS specific

Deprecated

The following deprecations are part of our Lean Core initiative; read more about it in the blog post.

iOS specific

  • Replace deprecated stringByReplacingPercentEscapesUsingEncoding: with stringByAddingPercentEncodingWithAllowedCharacters: (61ca119650 by @pvinis)

Removed

  • react-native-git-upgrade is now officially dead; use react-native upgrade instead (which uses rn-diff-purge under the covers) (a6bdacb257 by @cpojer)

iOS specific

Fixed

Android specific

iOS specific

v0.58.6

This release is fairly small, as we approach stable status for 0.59.

Thanks everyone who contributed code or participated in the discussion for cherry-picking commits - you can participate in the decision process for the next patch release here.

Fixed

Android specific

iOS specific

v0.58.5

This release resolves a few bugs and includes a few improvements, listed below.

Thanks everyone who contributed code or participated in the discussion for cherry-picking commits - you can participate in the decision process for the next patch release here.

Removed

Fixed

iOS specific

Security

Android specific

v0.58.4

This release resolves a few bugs and includes a few improvements, listed below.

Thanks everyone who contributed code or participated in the discussion for cherry-picking commits - you can participate in the decision process for the next patch release here.

Added

Android specific

Changed

Android specific

Removed

Fixed

Android specific

iOS specific

v0.58.3

This release resolves a regression in StatusBar using these fixes.

Thanks everyone who contributed code or participated in the discussion for cherry-picking commits - you can participate in the decision process for the next patch release here.

v0.58.2

This release fixes an issue caused by a wrongly reverted merge commit, that caused a short timeframe of commits to not actually be in the original 0.58.0. Those commits have been added to the 0.58 changelog below, as many are intertwined with the original work.

Thanks everyone who contributed code or participated in the discussion for cherry-picking commits - you can participate in the decision process for the next patch release here.

v0.58.1

There were some regressions with developer tools that prevented react-native run-ios from working properly in 0.58.0; this patch fix addresses that.

Thanks everyone who contributed code or participated in the discussion for cherry-picking commits - you can participate to the decision process for the next patch release here.

v0.58.0

Welcome to first stable release of React Native of 2019! There are a number of significant changes in this version, and we'd like to especially draw your attention to them:

  • Modernizing and strengthening flow types for core components
  • Breaking changes to ScrollView, CameraRollView, and SwipeableRow that make it no longer bound to the component instance in certain methods
  • Support for mutual TLS in WebKit
  • Asset serving from directories besides /assets
  • Numerous crash fixes and resolutions for unexpected behavior

Aside from those:

  • if you are an iOS developer, you'll need to manually link JavaScriptCore.framework when upgrading; this can be done via Xcode, and following the steps shown here.

  • Android developers, please note that Android's target SDK 27 is supported. Work is still underway to land target SDK 28 support, and it will come soon.

Thanks to those who gave feedback during the release candidate phase. If you're interested in helping evaluate our next release (0.59), subscribe to the dedicated issue here.

Added

  • Add support for publicPath to enable serving static assets from different locations (0b314960aa by @gdborton)
  • Add TouchableBounce now has a simple bounce() function that can be used to trigger a bounce without callbacks (7fe3f90156)

Android specific

  • Bundler server host can now be set using Android System Properties, making for easier debugging across multiple apps or app installs adb shell setprop metro.host (e02a154787 by @stepanhruda)
  • Native Modules can now reject a promise with an additional WritableMap arg for extra properties (userInfo). See the interface defined in Promise.java for available methods. This is accessible in JavaScript as Error.userInfo. This is to match iOS's existing Error.userInfo behavior. See PR for examples. (#20940 by @Salakar)
  • Native Modules now expose a nativeStackAndroid property to promises rejected with an Exception/Throwable - making native error stacks available inside Javascript: Error.nativeStackAndroid. This is to match iOS's existing Error.nativeStackIOS support. See PR for examples. (#20940 by @Salakar)

iOS specific

Changed

Breaking Changes 💥

  • Public methods of components converted to ES6 classes are no longer bound to their component instance. For ScrollView, the affected methods are setNativeProps, getScrollResponder, getScrollableNode, getInnerViewNode, scrollTo, scrollToEnd, scrollWithoutAnimationTo, and flashScrollIndicators. For CameraRollView, the affected methods are: rendererChanged. For SwipeableRow, the affected methods are: close. Therefore, it is no longer safe to pass these method by reference as callbacks to functions. Auto-binding methods to component instances was a behaviour of createReactClass that we decided to not preserve when switching over to ES6 classes. (you can refer to this example)

  • Native Modules in Android now require @ReactModule annotations to access .getNativeModule method on the ReactContext. This is how your updated Native Module should look like:

    // CustomModule.java
    
    // ...
    +  import com.facebook.react.module.annotations.ReactModule;
    
    +  @ReactModule(name="CustomBridge")
    public class CustomModule extends ReactContextBaseJavaModule {
      // ...
    
      @Override
      public String getName() {
          return "CustomBridge";
      }
    
      // ...
    }

Android specific

iOS specific

Removed

Fixed

Android specific

iOS specific

  • Fix case where content of inline views didn't get relaid out (798517a267 by @rigdern)
  • Fix issue with ImagePickerIOS's inconsistent image when using the front-facing camera (4aeea4d2dc)
  • Fix race condition and crash around shutdown of the JSC for iOS 11 and earlier (bf2500e38e by @mhorowitz)
  • Fix crash in NetInfo's _firstTimeReachability (eebc8e230a by @mmmulani)
  • Fix case where inline view is visible even though it should have been truncated (70826dbafc by @rigdern)
  • Fix crash with ScrollView related to content offsets (585f7b916d by @shergin)
  • Fix an issue where CameraRoll wasn't showing the front-facing camera consistently during capture and preview (4aeea4d2dc)
  • Fix case where inline view is visible even though it should have been truncated (70826dbafc by @rigdern)

Known issues

It is possible that you'll face an AAPT error regarding missing resources, here is an example of this error, in this case, you should try to update the build tools versions to buildToolsVersion = "28.0.2" in your android/build.gradle file. If you maintain a react-native library which uses native code you should avoid using hardcoded versions of the build tools and use the packaged version numbers, here is an example you can follow

v0.57.8

NOTE WELL: when you upgrade to this version you NEED to upgrade react and react-test-renderer to version "16.6.3".

Thanks everyone who contributed code or participated in the discussion for cherry-picking commits - you can participate to the decision process for the next release here.

Added

  • Fix: Add displayName to ActivityIndicator (#22417) (53da585832)

Changed

iOS specific

Removed

  • Remove trailing slash from origin header if no port is specified (#22290) (cbe7d41f3f)

Fixed

iOS specific

Security

v0.57.7

NOTE WELL: when you upgrade to this version you NEED to upgrade react and react-test-renderer to version "16.6.1".

This patch release fixes version 0.57.6 about losing focus in TextInput because of ada7089066.

Thanks everyone who contributed code or participated in the discussion for cherry-picking commits.

v0.57.6

INFO NOTE: It's highly recommended that you skip this version and upgrade to 0.57.7.

NOTE WELL: when you upgrade to this version you NEED to upgrade react and react-test-renderer to version "16.6.1". This patch release fixes a number of crashes, resolves build issues (both for iOS and Android). Thanks everyone who contributed code or participated in the discussion for cherry-picking commits.

Added

iOS specific

Removed

  • Remove useless additional blur call (#22156) (ada7089066)

Fixed

Android specific

iOS specific

v0.57.5

NOTE WELL: when you upgrade to this version you NEED to upgrade react and react-test-renderer to version "16.6.1".

This patch release fixes a number of crashes, resolves build issues (both for iOS and Android), and brings React to v16.6.1. Thanks everyone who contributed code or participated in the discussion for cherry-picking commits.

Changed

iOS specific

Fixed

  • Fix crash in VirtualizedList during pagination (5803772017)
  • Fix polyfilling of regeneratorRuntime to avoid setting it to undefined in some situations (2a7e02edf6 by @rafeca)
  • Fix View, Text, and ActivityIndicator's displayName (7a914fcef4 and 53da585832 by @rajivshah3 and others)
  • Fix crash that happens when a component throws an exception that contains a null message (6debfdf6d6 by @mdvacca)

Android specific

  • Fix incorrect merged asset path with flavor for Android Gradle Plugin 3.2 (e90319e9fa by @yatatsu)
  • Fix crash in ReadableNativeArray.getType when size of ReadableNativeArray's length > 512 (09c78fe968 by @dryganets)

iOS specific

v0.57.4

NOTE WELL: when you upgrade to this version you NEED to upgrade react and react-test-renderer to version "16.6.0-alpha.8af6728" (next version, 0.57.5, will update to 16.6.0, and it will come soon). Also, please check the Known issues section below, especially if you are using Xcode 10.

Thanks to everyone that contributed to the discussion for cherry-picking the commits that landed in this release, and the developers who submitted those commits!

Added: new features

Android specific additions

  • Android textTransform style support (22cf5dc566 by Stephen Cook)

Changes: existing functionality that is now different

Android specific changes

iOS specific changes

Fixed: bugs that have been resolved

Android specific fixes

iOS specific fixes

Known issues

There are a few issues that don't have a finalized solution (as it happens for 0.x projects). In particular:

  • when using Xcode 10 and react-native init, your build may fail due to third-party build steps (#20774). There is a commit we are planning to cherry pick in a future release that should help - in the meantime, you should be able to run these commands from the project folder to fix the issue (you should need to do it only once per project):

    cd node_modules/react-native
    scripts/ios-install-third-party.sh
    cd third-party/glog-0.3.5/
    ../../scripts/ios-configure-glog.sh
  • React 16.6.0 works for the most part, aside from the Context API (check this issue) - and if you are eager to test the new React Hooks you will have to be patient, as they are not production ready and 16.7.alpha is not yet supported by React Native.

v0.57.3

NOTE WELL: when you upgrade to this version you NEED to upgrade react and react-test-renderer to version "16.6.0-alpha.8af6728". Also, please check the Known issues section below, especially if you are using Xcode 10.

Thanks to everyone that contributed to the discussion for cherry-picking the commits that landed in this release, and the developers who submitted those commits!

Added: new features

Android specific additions

Changes: existing functionality that is now different

Android specific changes

iOS specific changes

Fixed: bugs that have been resolved

Android specific fixes

iOS specific fixes

Known issues

There are a few issues that don't have a finalized solution. In particular, when using Xcode 10 and react-native init, your build may fail due to third-party build steps (#20774). There is an open pull request which we are testing and hope to land soon (#21458). In the meantime, you can find a workaround here: https://github.com/facebook/react-native/issues/20774.

v0.57.2

Thanks to everyone that contributed to the discussion for cherry-picking the commits that landed in this release, and the developers who submitted those commits!

Added: new features

Android specific additions

Changes: existing functionality that is now different

Android specific changes

Fixed: bugs that have been resolved

Android specific fixes

Removed: features that have been removed; these are breaking

v0.57.1

We are trying, for 0.57, to approach it as a version with a longer "support", while waiting for some features to land that will allow for 0.58 to be cut.

Thanks to everyone that contributed to the discussion for cherry-picking the commits that landed in this release, and the developers who submitted those commits!

Added: new features

iOS specific additions

  • Expose scrollEnabled as iOS prop for TextInput (b9c28c236b by Chun Chen)

Changes: existing functionality that is now different

iOS specific changes

  • Making RCTIsIPhoneX() return true for the R and Max models (5e7c3ca005 by @shergin)
  • Way to register RCT_MODULE in Plugin2.0 instead of +load (5c160e5ded by Jeff Thomas)
  • Update RCTLinkingManager.h to explicitly state the 'nullability' of parameters (2271d1f912 by Warren Knox)

Fixed: bugs that have been resolved

iOS specific fixes

Removed: features that have been removed; these are breaking

iOS specific removals

v0.57.0

Welcome to the 0.57 release of React Native! This release addresses a number of issues and has some exciting improvements. We again skipped a monthly release, focused on quality by extending the release candidate phase, and let some upstream packages reach stable for inclusion.

This release includes 599 commits by 73 different contributors! In response to feedback, we've prepared a changelog that contains only user-impacting changes. Please share your input and let us know how we can make this even more useful, and as always let us know if you have any feedback on this process.

Highlights

New features

  • Accessibility APIs now support accessibility hints, inverted colors, and easier usage of defining the element's role and states; read more at @ziqichen6's excellent blog post
  • On iOS, WKWebView can now be used within the WebView component; read more at @rsnara's awesome blog post
  • Better support for out-of-tree platforms. For details, please refer to the discussion that the community used to get this up and running (there will be a new page in the docs dedicated to it too) - huge props to @empyrical for working on this!

Tooling updates

  • Android tooling has been updated to match newer configuration requirements (SDK 27, gradle 4.4, and support library 27); building with Android plugin 3.2 doesn't work due to the gradle scripts, so please stay on Android Studio 3.1 for now
  • Support Babel 7 stable landed! Be sure to read here about using TypeScript and check out the Babel 7 migration guide for help migrating.
  • Metro has been upgraded (with Babel 7 and better transformer support), and in the next major release we plan on having two new features (ram bundles and inline requires) optional for you all to use - you can read how it will happen here; moreover, if you have a custom packager config, we recommend you read also the "updating to this version" section.
  • Flow, React, and related packages have also been updated; this includes working support for the React Profiler.

The Slimmening is happening

As mentioned a few times in the past, the core team is reviewing the repository to trim it to the base React Native features in order to make the whole ecosystem more maintainable (by using a divide-et-impera approach, the community will move faster and enable pull requests to be reviewed and merged quicker). This change requires extracting some components into their own separate repos and removing old, unused code (details here).

0.57 is not directly affected by any changes, but we want you to know that:

  • WebView will be moved to its own repo at react-native-community/react-native-webview. There is already a base implementation there. Help us out by giving that a try, and expect that WebView will be deprecated soon
  • NavigatorIOS will be fully removed from the main codebase starting 0.58.0 (via this commit); it is now deprecated

Updating to this version

  1. Upgrade the version of React Native in the package.json from 0.56.0 to 0.57.0, and the React version to 16.5

  2. Change the babel-preset dependency from "babel-preset-react-native": "^5", to "metro-react-native-babel-preset": "^0.45.0",, then change the .babelrc configuration to:

      {
        "presets": ["module:metro-react-native-babel-preset"]
      }
  3. Ensure that you have all the babel dependencies to version ^7.0.0 (you may also need to add "babel-core": "7.0.0-bridge.0" as a yarn resolution to ensure retro-compatibility). The Babel team has released a tool, babel-upgrade, that should help you in this migration.

  4. Upgrading android gradle version to 4.4

    1. In your project's android/gradle/wrapper/gradle-wrapper.properties file, change the distributionUrl to https\://services.gradle.org/distributions/gradle-4.4-all.zip
    2. In android/build.gradle file add google() right above jcenter() in both buildscript and allprojects repositories. Then change Android build tools to version 3.1.4 classpath 'com.android.tools.build:gradle:3.1.4'
    3. In android/app/build.gradle file update all your compile statements to be implementation, e.g. implementation 'com.facebook.fresco:animated-gif:1.10.0'
    4. Do note that when running your app from within Android Studio, you may encounter Missing Byte Code errors. This is due to a known issue with version 3.1.x of the android tools plugin. You'll need to disable Instant Run to get past this error.
  5. If you have a custom packager configuration via rn-cli.config.js, you probably need to update it to work with the updated Metro configuration structure (for full detail refer to Metro's documentation); here are some commonly encountered changes to rn-cli.config.js:

    -const blacklist = require('metro/src/blacklist')
    +const blacklist = require('metro-config/src/defaults/blacklist')
    
    // ...
    
    module.exports = {
    +  watchFolders: alternateRoots,
    +  resolver: {
    +    blacklistRE: blacklist
    +  },
    +  transformer: {
    +    babelTransformerPath: require.resolve('./scripts/transformer.js'),
    +  },
    -  getProjectRoots() {
    -    return [
    -      path.resolve(__dirname),
    -    ].concat(alternateRoots)
    -  },
    -  getBlacklistRE() {
    -    return blacklist;
    -  },
    -  transformModulePath: require.resolve('./scripts/transformer.js'),
    }
  6. Run yarn to ensure that all the new dependencies have been installed

Added: new features

Android specific additions

iOS specific additions

Changes: existing functionality that is now different

Breaking Changes

  • Public methods of Image (blur, focus, measure, measureInWindow, measureLayout, setNativeProps) are no longer bound to the image component instance. Therefore, it is unsafe to pass these methods by reference (i.e: as callbacks) to functions. So, things like setTimeout(this._imgRef.focus, 1000) will no longer work. Please instead do: setTimout(() => this._imgRef.focus(), 1000).

Android specific changes

Fixed: bugs that have been resolved

Android specific fixes

  • Fix issue with AsyncStorage not behaving properly on Android 7+ (1b09bd7fba)
  • Fixed extreme <TextInput> slowness (5017b86b52 by @gnprice)
  • Fixed <TextInput> placeholder not being completely visible (84022321c4 and 86f24ccf71 by @jainkuniya)
  • Fix Horizontal <ScrollView>'s scroll position during layout changes with RTL content (de573277bf)
  • Fix Horizontal <ScrollView> overflow issue (d5465a9a0a)
  • Fixing crash on SDK 15 on ReactTextInputLocalData (1bb2bead8b)
  • Fix Drawing Rect for ReactScrollView (6a16bec882 by @yungsters)
  • Fixed NoSuchKeyException Thrown From ReadableNativeMap bysafely unwrapping ReadableMap by defaulting to 0 if key not present (1a6666a116 by @Bhavik-P)
  • Fixed runAndroid to enable the use of a package on port <> 8081 for Windows (3cd0737fe2 by @ihenshaw)
  • Don't crash on upload retry when trying to fetch on a varying quality network (79fe925f1d by @dryganets)

iOS specific fixes

Removed: features that have been removed; these are breaking

  • [BREAKING] Removed ScrollView.propTypes; use flow or typescript for verifying correct prop usage instead (5b6ff01764 by @sahrens)

Android specific removals

  • ReactInstancePackage is now deprecated; use @link ReactPackage or @link LazyReactPackage (b938cd524a by @axe-fb)

v0.56.0

Welcome to the June 2018 release of React Native! Over 60 contributors made 821 commits since March - and we are extremely grateful to every single one of you.

As you'll see in a second, this new version has some important breaking changes that required a lot of extra efforts to bring to a stable 0.56. This was the main reason behind skipping April and May from the monthly release cycle, but looking forward we are planning on going back to do a rollout every month.

Highlights

React Native now uses Babel 7

When upgrading to 0.56, make sure to bump your babel-preset-react-native package.json dependency to 5.0.2 or newer (but still as fixed value).

React Native library authors will need to update their libraries to make use of the updated Babel preset as Babel 7 is not backwards compatible.

If you have issues upgrading to Babel 7, please double check the related documentation, in particular the sections related to Package Renames and Scoped Packages.

The babel-bridge library may be used if you need to use libraries that have not yet upgraded to Babel 7. You may also enforce the Babel 7 dependency via tools like yarn resolutions. Overall, you need to ensure all the @babel/* deps are fixed at version 7.0.0-beta.47.

Node 8 is now the minimum required version

Trailing commas are now allowed.

iOS 9 is now the minimum required version

Any device that can run iOS 8, can upgrade to iOS 9. Developers who support iOS 8 in their apps may continue doing so as this is a Xcode-level setting (IPHONEOS_DEPLOYMENT_TARGET).

Xcode 9 is now the minimum required version

We recommend using Xcode 9.4 as that is what we use to run our tests.

Android projects are now compiled using the Android 26 SDK

The target API level is left unchanged in this release.

Starting August 2018, new apps submitted to the Play Store will need to target API 26 as a minimum. You can now opt your project in to use API 26 (or newer) as the target. Please let us know about any issues, as we'd like to finalize support for Android API 26 by the time 0.57.0 is released.

WebView will only load http(s) URLs by default

Geolocation is disabled by default.

Consistently Throw for <Text><View /></Text>

Removes a pitfall that people may run into when releasing an app for Android if the bulk of the testing has been performed on iOS only. Nesting a <View> within a <Text> component (e.g. <Text><View /></Text>) is unsupported on Android, but using this pattern on iOS has not thrown errors in the past. With this release, nesting a <View> inside a <Text> will now throw an error on iOS in order to reduce the parity gap between the platforms.

Flow improvements, migrating away from PropTypes

Added Flow types for several components.

We're migrating away from PropTypes and runtime checks and instead relying on Flow. You'll notice many improvements related to Flow in this release.

  • Fix project settings warnings on newer Xcode versions, remove unnecessary console logging.
  • Modernized YellowBox. Sort warnings by recency, group warnings by format string, present stack traces, show status of loading source maps, support inspecting each occurrence of a warning, and bug fixes.
  • Prettier files!
  • Lots of bug fixes.

State of React Native

Heads-up: the Facebook internal team is currently working on a rewrite of some core architecture pieces. This is a work in progress and we do not expect it to be ready for use in open source quite yet, but we felt the need to let you know what those commits mentioning Fabric are about.


Added: new features

  • Update babelHelpers with Babel 7 support (fbd1beaf66)
  • FlatList is now Strict Mode compliant (a90d0e3614)
  • Enable ?. optional chaining operator plugins (aa6f394c42)
  • Support flexWrap: 'wrap-reverse' (d69e55060f)
  • Add prop type accessibilityTraits to Text (654435d1ed)
  • Add devDependencies support for templates (c4ab03a18e)
  • Add support for springDamping in SpringInterpolator (1dde989919)

Android specific additions

  • Add support for build.gradle with CRLF for use with react-native link (843cfc3b20)
  • add decimal pad to android (75e49a0637)
  • Add a way to dismiss PopupMenu elements (353c070be9)
  • Implement Image.defaultSource (b0fa3228a7)
  • Support Image resizeMode=repeat (0459e4ffaa)
  • Yoga: Add back deprecated getParent methods for non-breaking API change (c3c5c3cbce)

iOS specific additions

  • Run tests using Xcode 9.4 and iOS 11.4 (c55bcd6ea7)
  • Add support for Homebrew-installed Node (0964135a17)
  • Add textTransform style support (8621d4b797)
  • Add docs for Swift usage to RCTBridgeModule.h (ca898f4367)

Changes: existing functionality that is now different

  • Upgrade React Native to Babel 7 (f8d6b97140)
  • New projects created using react-native