Skip to content

December 2016

Compare
Choose a tag to compare
@grabbou grabbou released this 04 Jan 11:09
· 25135 commits to main since this release

This is the first release with the new monthly cadence, so 0.40 is known as December 2016. The next version will be 0.41 - January 2017, and will be released at the end of the month.

Breaking Changes

iOS native headers moved

This change affects all native modules and application code on iOS that refer to react native .h files

After e1577df, Native code on iOS must refer to headers out of the react namespace. Previously the following would work:

#import "RCTUtils.h"

But now all headers have been moved:

#import <React/RCTUtils.h>

This means that all iOS native libraries need a major version bump for RN 0.40. We attempt to minimize changes of this magnitude, and we apologize for any inconvenience caused.

require('image!...') no longer supported

Support for require('image!…'), which has been deprecated for a long time, is now removed. If you are still loading images that way in your apps, make sure to check the documentation for alternatives.

getTransformModuleOptions is removed

If you were having custom rn-cli.config.js in your app and for some reason, using getTransformModuleOptions, make sure to check @davidaurelio commit ca58e0a for details on the changes.

Android

Bugfixes

  • Fix WebView crash for links of unknown schemes (35e75c8) - @rigdern
  • Fix Overlay for Marshmallow 23+ (e335ca0) - @jpshelley
  • Stop silently failing for requires on Android (63eb4df) - @javache
  • Fix SamplingProfiler and HeapCapture for apps that lazy load react modules (d919eb7)
  • Call handleUpdateLayout even if the content didn't change (fb23000) - @Kerumen

New features and enhancements

  • Add ability to specify main Activity in run-android (9fb520e) - @grabbou
  • Add disableExtractUI prop to TextInput on Android (1b870d2) - @rigdern
  • Add DatePicker mode configurations (eaccd7e) - @pandiaraj44
  • Enable apps to provide a custom configuration to Fresco (8b199a7) - @rigdern
  • Speed up EventEmitter emit() by ~50% (c4046d6) - @Venryx
  • Enable ad-hoc dependencies to be pre-downloaded (aac8daf) - @rigdern
  • Keep ScrollView content visible after edits (528a3c7) - @rigdern
  • Decrease cost of reflection (911c05a) - @rigdern
  • Update android gradle plugin version to 2.2.2 (3ee5c5b) - @raycohen
  • Expose Android's includeFontPadding for Text (7b3e67d) - @benvium
  • Handle "Never Ask Again" in permissions and add requestMultiplePermissions (51efaab) - @cmcewen
  • Remove Jackson dependency (6fef014)
  • Remove REACT_HEADERS from RN BUCK file (9024998) - @javache
  • Implement onViewAppear by creating a new EventListener on ReactRootView listening for when it's attached to a RN Instance (e06b8db) - @donyu

iOS

Bugfixes

New features and enhancements

  • Introduce spellCheck prop to TextInput (0e55f5b) - @rigdern
  • Make run-ios find if a device is booted better (0b5ff0d)
  • Start exposing RCTWebSocketObserver using a protocol (48cb8d3) - @adamjernst
  • Add fastlane to default .gitignore (5e008c9) - @KrauseFx
  • Move all header imports to "<React/..>" (see breaking change notes) (e1577df) - @javache
  • Remove deprecated push notification method info (9c7952d) - @sharnik
  • Add badgeColor property (a50bafa) - @skv-headless
  • UnselectedItemTintColor property available since iOS10 (8378142) - @skv-headless

General

Bugfixes

New features and enhancements