发布于 2017-02-04 00:30:10 | 110 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的React Native官方指南,程序狗速度看过来!

React Native 用 React 开发移动应用

ReactNative 可以基于目前大热的开源JavaScript库React.js来开发iOS和Android原生App。而且React Native已经用于生产环境——Facebook Groups iOS 应用就是基于它开发的。


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

下载地址:



历史版本 :
React Native 0.47.0 正式版发布
React Native 0.45.0 正式发布,有重大变更
React Native 0.42.0 正式发布,大量修复和改进
React Native 0.41.0 正式发布,大量新功能和修复
React Native v0.40.0 和 0.41.0 rc0 发布
React Native 0.37 发布,删除弃用的 API 和模块
React Native v0.31.0-rc 发布
React Native 源码笔记——你知道几条?
React Native v0.29-rc 发布
React Native v0.27.0 发布
React Native 0.22 发布
React Native 0.16 发布,用 React 编写移动应用
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务