发布于 2017-02-04 00:30:10 | 118 次阅读 | 评论: 0 | 来源: 网友投递
这里有新鲜出炉的React Native官方指南,程序狗速度看过来!
React Native 用 React 开发移动应用
ReactNative 可以基于目前大热的开源JavaScript库React.js来开发iOS和Android原生App。而且React Native已经用于生产环境——Facebook Groups iOS 应用就是基于它开发的。
React Native 0.41.0 正式版发布了。
更新内容:
此功能目前还处于实验阶段。Nodes 是 Android 上的 ReactNative 的 UII 实现的实验、替代版本。和现有的 UII 实现相比有两个主要优点:
支持 overflow:visible
更高效地生成视图层次结构
2、重要改进
将getUseDeveloperSupport的可见性从protected更改为public。 为了顺利升级,需替换 MainApplication.java 中的以下内容:
protected boolean getUseDeveloperSupport() {
with
public boolean getUseDeveloperSupport() {
使用 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
下载地址: