React Native 0.36 正式版发布
2016-10-26 by 晴明

原文地址

从0.18开始,RN默认项目全面转向ES6,语法大变化,请参考此贴学习 http://bbs.reactnative.cn/topic/15/

如何升级现有项目的RN版本?

Breaking changes

General

Android

Most of your layouts will continue to function as before however some of them might not. Typically this is due to having a flex: 1 style where it is currently a no-op due to being measured with an undefined size but after this change it may collapse your component to take zero size due to the implicit flexBasis: 0 now being correctly treated. Removing the bad flex: 1 style or changing it to flexGrow: 1 should solve most if not all layout issues your see after this change.

General

Bugfixes

New features and enhancements

Android

Bugfixes

New features and enhancements

iOS

Bugfixes

New features and enhancements

Windows

Bugfixes

[去论坛发表意见]