红联Linux门户
Linux帮助

React Native v0.29-rc发布

发布时间:2016-06-27 09:22:10来源:红联作者:baihuo
React Native v0.27.0 发布了。更新如下:

Breaking changes

General

Kill NavigationReducers (3a8b50a)

NavigationExperimental - Clean up NavigationStateUtils (67002e8)

Remove the logic that lets NavigationStateUtils accept empty value as input and return a new state.

Remove the method NavigationStateUtils.getParent, NavigationStateUtils.set.

NavigationExperimental - Remove prop onNavigate (fb0007d)

Android

Add ReactInstanceHolder (49f20f4)[code]android:allowBackup="true"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:theme="@ /AppTheme">[/code]The experience might vary according to the level of customization you've made. Check this commit to see how UIExplorer and MoviesApp were migrated - dcc2abc

Create a new file MainApplication.java in the same folder as MainActivity.java

Update it to match - https://github.com/facebook/react-native/blob/0.29-stable/local-cli/generator-android/templates/package/MainApplication.java and move your customisations from MainActivity.java to this file

Update MainActivity.java to match - https://github.com/facebook/react-native/blob/0.29-stable/local-cli/generator-android/templates/package/MainActivity.java

Add android:name=".MainApplication" in the section ofAndroidManifest.xml. It should now look like,

Remove support for password property and only use secureTextEntry (f3507f9)

Remove the Profiler Option in RN Android Dev Menu (4b19db3)

iOS

Automatically clip subviews when removeClippedSubviews prop is used (1048e5d)

Remove deprecated methods from StatusBarIOS (4de616b)

下载地址:https://github.com/facebook/react-native/archive/v0.29.0-rc.0.tar.gz

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

共有 0 条评论