芊雅企服
常用框架/库

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

芊雅企服技术团队836 次浏览约 3 分钟读完

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

下载地址:

相关文章

免费获取你的专属方案。

资深技术顾问一对一诊断需求,为你量身定制方案与报价。

  • 免费需求诊断与方案建议
  • 透明报价,工期明确
  • 现成方案与定制开发灵活组合
电话咨询135 0699 3986

信息仅用于顾问联系你,绝不外泄。

电话咨询免费获取方案

和技术顾问聊聊,免费拿方案。

说说你的行业和想法,顾问免费评估方案与报价。

电话咨询135 0699 3986一键拨打
微信号fzqianya
技术顾问微信二维码
微信扫一扫添加技术顾问,直接沟通需求截图保存后,在微信“扫一扫”中选择图片识别

不方便沟通?留下电话,顾问回电