React Native 0.45.0 正式发布,有重大更新
2017-06-08 17:48
676 查看
React Native 继续之前的升级的频率,差不多一个月升级一次。6月7号React Native 0.45.0正式发布。该版本有如下的重大变更:
1,删除 React 的转发和错误导入警告(Remove React forwarding and wrong import warnings)
2,其他更改
Return findNodeHandle to public api (7063261) - @skv-headless
Fix warnings in TouchableHighlight (bd00456) - @zjj010104
Custom build options: Move transform options into own property (8533c0d) - @davidaurelio
Work around a false positive isMounted() warning (074c3ce) - @gaearon
CLI: Stronger typing for transformers (73fc439) - @davidaurelio
CLI: Disable no-alert eslint rule for node code (d2505e7) - @davidaurelio
CLI: Get rid of FBism in Config (b9fb229) - @davidaurelio
CLI: Resolve path at callsite rather than in Config.loadFile (edf1774) - @davidaurelio
CLI: Fix Promise resolve callback error (7dd2cd3) - @johnislarry
Fixed default placeholder text color for multiline (cf975bb) - @shergi
Allow calling NativeViewHierarchyManager.addRootView() off the UI thread (20c2ae8) - @AaaChiuuu
FlatList: use $ReadOnlyArray for section stuff (5084e1b) - @sahrens
FlatList: Make section key optional (8d373f3) - @sahrens
FlatList: Many improvements (28aaa88) - @sahrens
FlatList: Fix and optimize VirtualizedList update triggers (52e50af) - @sahrens
FlatList: Made getItem and getItemCount required props (VirtualizedList) (beeffb8) - @mariten
FlatList: Add ListEmptyComponent prop (264d67c) - @Minishlink
FlatList: flipped leading/trailing separators.updateProps (5c7c65e) - @sahrens
FindNodeHandle properly handles ReactCurrentOwner.current Fiber type (909fb72) - @bvaughn
Sync React 16 from alpha 6 to 12 (ef0bd5c) - @bvaughn
Open in editor fix, show tip instead of error (9934131) - @skv-headless
Fix parseFloat mistaken uses of “radix” (37f3ce1) - @zertosh
Add flow to processColor.js (c7e0f56) - @TheSavior
Add method on YellowBox to ignore warnings (a974c14)
Refactor MessageQueue (0a55e42) - @rh389
Order modules in bundle by path. (978592f) - @amnn
这时候可能需要对版本进行回退,打开项目的package.json文件将依赖会退到0.44.3版本。
删除node-modules文件夹,然后执行npm install。回到0.44版本。
1,删除 React 的转发和错误导入警告(Remove React forwarding and wrong import warnings)
2,其他更改
Bug 修复
XMLHttpRequest withCredentials defaults to “true” (7c3918b) - @DanielZlotinReturn findNodeHandle to public api (7063261) - @skv-headless
Fix warnings in TouchableHighlight (bd00456) - @zjj010104
新特性
TouchableHighlight needs to set _isMounted false when it unmounts. (d40a7ea) - @sahrensCustom build options: Move transform options into own property (8533c0d) - @davidaurelio
Work around a false positive isMounted() warning (074c3ce) - @gaearon
CLI: Stronger typing for transformers (73fc439) - @davidaurelio
CLI: Disable no-alert eslint rule for node code (d2505e7) - @davidaurelio
CLI: Get rid of FBism in Config (b9fb229) - @davidaurelio
CLI: Resolve path at callsite rather than in Config.loadFile (edf1774) - @davidaurelio
CLI: Fix Promise resolve callback error (7dd2cd3) - @johnislarry
Fixed default placeholder text color for multiline (cf975bb) - @shergi
Allow calling NativeViewHierarchyManager.addRootView() off the UI thread (20c2ae8) - @AaaChiuuu
FlatList: use $ReadOnlyArray for section stuff (5084e1b) - @sahrens
FlatList: Make section key optional (8d373f3) - @sahrens
FlatList: Many improvements (28aaa88) - @sahrens
FlatList: Fix and optimize VirtualizedList update triggers (52e50af) - @sahrens
FlatList: Made getItem and getItemCount required props (VirtualizedList) (beeffb8) - @mariten
FlatList: Add ListEmptyComponent prop (264d67c) - @Minishlink
FlatList: flipped leading/trailing separators.updateProps (5c7c65e) - @sahrens
FindNodeHandle properly handles ReactCurrentOwner.current Fiber type (909fb72) - @bvaughn
Sync React 16 from alpha 6 to 12 (ef0bd5c) - @bvaughn
Open in editor fix, show tip instead of error (9934131) - @skv-headless
Fix parseFloat mistaken uses of “radix” (37f3ce1) - @zertosh
Add flow to processColor.js (c7e0f56) - @TheSavior
Add method on YellowBox to ignore warnings (a974c14)
Refactor MessageQueue (0a55e42) - @rh389
Order modules in bundle by path. (978592f) - @amnn
更新后问题
如果更新到0.45.0可能会报如下错误:Installing build/Build/Products/Debug-iphonesimulator/temp.app An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): Failed to install the requested application An application bundle was not found at the provided path. Provide a valid path to the desired application bundle. Print: Entry, ":CFBundleIdentifier", Does Not Exist
这时候可能需要对版本进行回退,打开项目的package.json文件将依赖会退到0.44.3版本。
"react": "16.0.0-alpha.6", "react-native": "0.44.3"
删除node-modules文件夹,然后执行npm install。回到0.44版本。
相关文章推荐
- React Native 0.45.0 正式发布,有重大变更
- Windows 10 TH2首次重大更新1511正式发布
- Java SE 6u15更新版本发布 修复重大安全问题
- React Native也正式发布了
- [更新][正式发布]Windows Phone 7中文输入模块
- 宣布正式发布 Windows Azure 上的 Oracle 软件以及 Windows Azure Traffic Manager 更新
- Swift 1.2 正式发布 - 带来很多重大改进
- 苹果发布Xcode 6 Beta 3,Swift迎来重大更新!
- 发布.net项目开发工具新版(版本号:V3.2.60.10,Lucene精灵重大更新)
- 金山毒霸2006终身升级版V4.1正式发布(2006.5.5更新)
- 【重大更新】IntelliJ IDEA v2017.1发布,功能大量更新,先睹为快!|附下载
- Win10 Fall Update重大更新11月发布:Edge浏览器仍无扩展
- 宣布 Windows Azure 通过 PCI DSS 合规性验证并且 ISO 认证范围扩大,同时正式发布 Windows Azure Hyper-V 恢复管理器和其他更新功能
- Windows Phone 7系统首个重大更新NoDo发布
- Spring Boot 2.0.0 终于正式发布,重大修订版本
- 【版本更新】Excel控件Spire.XLS for .NET V7.12发布 | 修复多个重大bug
- 宣布 Windows Azure 通过 PCI DSS 合规性验证并且 ISO 认证范围扩大,同时正式发布 Windows Azure Hyper-V 恢复管理器和其他更新功能
- xmake v2.1.5版本正式发布,大量新特性更新
- 【更新】Excel组件Spire.XLS for .NET V7.12.109发布 | 修复多个重大bug 4000
- 【★更新★】Portal-Basic Java Web 开发框架 v3.1.1 正式发布(源码、示例及文档)