React Native January 2017 (0.41.0) released
v0.41.0 on GitHub (npm)
This is 0.41.0 release, referred to as "January 2017" according to the new release schedule.
New features
Android: Nodes
This feature is currently experimental. You can turn it on by applying this in your
ReactNativeHost
subclass.
Nodes is an experimental, alternate version of UIImplementation for ReactNative on Android. It has two main advantages over the existing UIImplementation:
- Support for
overflow:visible
on Android. - More efficient generation of view hierarchies.
The intention is to ultimately replace the existing UIImplementation on Android with Nodes (after all the issues are ironed out).
Feature development and bug-fixes related to Nodes
are listed below in a separate section for better clarity.
Check the readme for more details.
Breaking changes
Android: Change ReactNativeHost getUseDeveloperSupport to public
This changes the visibility of getUseDeveloperSupport
from protected
to public
. In order to upgrade, you should replace the following in your MainApplication.java
:
protected boolean getUseDeveloperSupport() {
with
public boolean getUseDeveloperSupport() {
Android: ReactClippingViewGroup is moved to another package
Developers using ReactClippingViewGroup
may need to update their imports from:
import com.facebook.react.views.view.ReactClippingViewGroupHelper;
to
import com.facebook.react.uimanager.ReactClippingViewGroupHelper;
General
Bugfixes
- Fix sizing of container with child overflowing parent (8d2a034) - @emilsjolander
- Fix babelHelpers.typeof is not a function (ab89b71) - @cmcewen
- Fix jest tests (8305743) - @grabbou
- CLI: Fix error when there is no windows project (5927646) - @rh389
- Inspector: Fix error when Touchables inspector is shown (5f8d7ac) - @magicismight
- Inspector: Fix inspector overflow (21ba956) - @sahrens
- Packager: Fix the
path.sep
replacement of node-haste for Windows (2249af1) - @jhen0409 - Packager: TerminalReporter: remove underline/emoji (04fdf40) - @jeanlauliac
- Packager: TerminalReporter: properly reporting bundle updates (3d12ddb) - @jeanlauliac
- Packager: Module: remove too-many-misses codepath (2f1d1bd) - @jeanlauliac
New features and enhancements
- Expose pressRetentionOffset for Text (550469b) - @evollu
- NavigationExperimental: Support custom card style interpolators (c8a7f9e) - @dingbat
Android
New features and enhancements
- allowFontScaling is now supported (4394419) - @sdg9
- Throw on redundant callback invocations from native modules (e646183) - @theoy
- ART: Support dashes in ARTShape (e1b0d32) - @tepamid
- ART: Fix OutOfMemoryException in ARTSurfaceShadowNode (e1b0d32) - @tepamid
- Yoga: Correctly check if child is flex by also accounting for undefined (18a2c23) - @emilsjolander
- Yoga: Convert max cache count into a define (05e0b67) - @emilsjolander
iOS
Bugfixes
- Fix for dimensions not updating correctly on iPad due to screen rotation (a19c699) - @manicakes
- Fix comparison between NSNumber* and int (7123618) - @kastiglione
- Fix Podspec (6e9fe37) - @ptomasroos
- Fix new projects generated by
init
(e0c3d56) - @rh389