红联Linux门户
Linux帮助

React Native 0.41.0正式发布,大量新功能和修复

发布时间:2017-02-04 09:19:19来源:红联作者:baihuo
React Native 0.41.0 正式版发布了。

更新内容:

1、新特性:

Android: Nodes

此功能目前还处于实验阶段。Nodes 是 Android 上的 ReactNative 的 UII 实现的实验、替代版本。和现有的 UII 实现相比有两个主要优点:

支持 overflow:visible

更高效地生成视图层次结构

2、重要改进

Android: 将 ReactNativeHost getUseDeveloperSupport 更改为 public

将getUseDeveloperSupport的可见性从protected更改为public。 为了顺利升级,需替换 MainApplication.java 中的以下内容:

protected boolean getUseDeveloperSupport() {

with

public boolean getUseDeveloperSupport() {

Android:ReactClippingViewGroup 被移动到另一个包

使用 ReactClippingViewGroup 的开发人员可能需要从以下位置更新其导入:

import com.facebook.react.views.view.ReactClippingViewGroupHelper;

to

import com.facebook.react.uimanager.ReactClippingViewGroupHelper;

3、一般更新

修复

Fix sizing of container with child overflowing parent

Fix babelHelpers.typeof is not a function

Fix jest tests

CLI: Fix error when there is no windows project

Inspector: Fix error when Touchables inspector is shown

Inspector: Fix inspector overflow

Packager: Fix the path.sep replacement of node-haste for Windows

Packager: TerminalReporter: remove underline/emoji

Packager: TerminalReporter: properly reporting bundle updates

Packager: Module: remove too-many-misses codepath

新功能和改进

Expose pressRetentionOffset for Text

NavigationExperimental: Support custom card style interpolators

4、Android

新功能和改进

allowFontScaling is now supported

Throw on redundant callback invocations from native modules

ART: Support dashes in ARTShape

ART: Fix OutOfMemoryException in ARTSurfaceShadowNode

Yoga: Correctly check if child is flex by also accounting for undefined

Yoga: Convert max cache count into a define

5、iOS

修复

Fix for dimensions not updating correctly on iPad due to screen rotation

Fix comparison between NSNumber* and int

Fix Podspec

Fix new projects generated by init

新功能和改进

CocoaPods: Make Core subspec use a Ruby string array for exclude_files

Show Yellow Box when we fail to load a local image

Apple TV support 5

下载地址:https://github.com/facebook/react-native/archive/v0.41.0.zip

来自:开源中国社区
文章评论

共有 0 条评论