React Native February 2017 (v0.42.0) released

v0.42.0 on GitHub (npm)


This is February 2017 release, also known as 0.42.0.

Breaking changes

Android: windowSoftInputMode for new apps

e3d4ace - @mkonicek

All new apps created with react-native init are going to have windowSoftInputMode:``adjustResize instead of adjustUnspecified, which is default. That change makes keyboard handling on Android automatic and doesn't require any Javascript solutions, like KeyboardAvoidingView to be used. You can see the rationale behind that change along the screenshots here. It shouldn't be breaking for most of the users.

Android: (Re)move JSBundleLoader.getSourceUrl()

89d72c9 - @amnn

If you are using any of the following API's to access the Source URL of the bundle:

  • JSBundleLoader.getSourceUrl()
  • ReactInstanceManager.getSourceUrl()
  • ReactInstanceManager.getJSBundleFile()

you have to now refer to the source of truth for this information, which is at CatalystInstance.getSourceURL(), or the return value of JSBundleLoader.loadScript().

Android: Remove RecyclerViewBackedScrollView

6ec5654 - @mkonicek

RecyclerViewBackedScrollView was added a long time ago to work around the scroll-back-when-data-is-added bug, but that has now been fixed directly in the ScrollView (ReactScrollView.java) in open source and internally.

Both: Improve validation of transform property

0ed31eb - @janicduplessis

This commit improves validations of the transform object that are done on the Javascript side and makes it a bit stricter (hence the breaking change). When moving transform objects parsing to native the validations got out of sync a bit. In this change we make sure JS validations are the same or stricter than the native ones to make sure we get consistent errors across platforms.

General

Bugfixes

New features and enahcements

Android

Bugfixes

New features and enahcements

iOS

Bugfixes

New features and enhancements

General

Bugfixes

New features and enhancements

  • Update React version to ~15.4.1 (ead6dcd) - @ide
  • Add percentage support to react native (3f49e74) - @emilsjolander
  • JSC Heap Capture add other roots to visualization (936c62a) - @cwdick
  • Add scrollToEnd to ScrollView and ListView (9dee696) - @mkonicek
  • Packager: add utilities to log errors internally (abf75fa) - @jeanlauliac
  • Add symlinks under node_modules as part of projectRoots (bce6ece) - @harshil07
  • Add cell size to JSC heap capture visualization (76e3d45) - @cwdick
  • Add style and imageStyle props to Navigation.Header.BackButton (7812b82) - @danscan
  • CLI: Add support for project templates (3a6dff4) - @mkonicek
  • CLI: Add README to app template, lint (021e754) - @mkonicek
  • CLI: Add basic Navigation template to init (Chat) (3ee3d2b) - @mkonicek
  • CLI: Use Yarn for Install/Uninstall when available (1c249e4) - @n3tr
  • Run application using package.json scripts (bc8b23a) - @Kureev
  • Even faster source map generation (3b3d294) - @davidaurelio
  • High-perf source map builder (7ca5316) - @davidaurelio
  • Allow project-specific config for RN CLI using providesModuleNodeModules (09a83f9) - @andrewimm
  • Added AnimatedValueXY.removeAllListeners (6d2ae35) - @scarlac
  • Cache policy control for image source (52d8851) - @salanki
  • Support copy to clipboard on Windows (10a29aa) - @janicduplessis
  • Use a project's custom platforms when creating a production bundle (a1cd5e0) - @andrewimm
  • Require fbjs/lib/invariant instead of invariant (517abba) - @davidaurelio
  • Enable setting custom styles on scenes stack (2cfb3f1) - @oyvindkinsey
  • Deal with 0.38 'FlowFixMe's (7a4166c) - @rh389
  • Move C++ bridge into oss directory (b774820) - @mhorowitz
  • XHR: support typed arrays for request payloads (16bb6e8) - @philikon
  • Drive any numerical prop via NativeAnimated (7e869b9) - @ryangomba
  • Ensure documentation has consistent relative links (8378f0f) - @PaulMest
  • Guard against empty _inputRef in TextInput (5a09b28)
  • Allow for dark background in the debugger view (5e6f39a) - @pvinis
  • Properly clear openRowID when a row is swiped to closed position (2edd455) - @cryptobiote
  • Remove max children limitation on SwipeableQuickActions (d211995) - @chirag04
  • Allow aspect ratio to expand beyond bounds of parent (7c2f8a9) - @emilsjolander
  • Transfer TextUpdate padding info onto text input view (669c84f) - @emilsjolander
  • Dont constrain absolute children to zero sized parents (018b853) - @emilsjolander