React Native 0.57.4 已发布!
要注意的是,当升级到这个版本时,至少需要将 react 和 react-test-renderer 升级到 “16.6.0-alpha.8af6728″,这是为即将到来的 React 16.6.0 的 “first class support” 做准备。
Added: new features
Android specific additions
- Android textTransform style support (22cf5dc by Stephen Cook)
Changes: existing functionality that is now different
- Do not use fbjs/emptyObject (7541655 by @alunyov)
- Add deprecation notice to SwipeableListView (99471f8 by @TheSavior)
Android specific changes
- Consolidate native dependencies versions (ba608a2 by @dulmandakh)
- bump okhttp3 to 3.11 (10fc548 by @dulmandakh)
- Android: Send metrics in onTextLayout events (737f937 by @mmmulani)
- Use TextLegend example in Android as well (335927d by @mmmulani)
iOS specific changes
- Bump xcode@1.0.0 (b951499 by @peat-psuwit)
- Text: send metrics after rendering (iOS) (64a5253 by @mmmulani)
- Allow specifying iOS version for run-ios with simulator option (0fab27c by @elyalvarado)
- Relax the requirement that lazy module cannot be initialized on the main thread (dbc864c by @spredolac)
Fixed: bugs that have been resolved
- Fix crashes on invalid regex (298f14d by @RSNara)
- Fix pull to refresh refresh component clipping on Android (8a3a0ad by Andy Huang)
- ListView requestAnimationFrame leak (70b5eb3 by @exced)
Android specific fixes
- reverted Update bad method
- Fix accessibility role crash (139559f by Haseeb Saeed)
- Fix accessibilityRole value lookup (1f96ff6 by @ayc1)
- Fix DynamicFromMap object pool synchronization (b0d68c0 by @haitaoli)
- Back out “[react-native][pr] Rounded corner rendering fixed on Android N.” (bb407fa by Jonathan Lee)
- Fix onTextLayout metrics on Android when using alignText (1c240ae by @mmmulani)
- Cleaning up imports in ViewGroupManager (082a869 by @mdvacca)
iOS specific fixes
Removed: features that have been removed; these are breaking
Known issues
There are a few issues that don’t have a finalized solution (as it happens for 0.x projects). In particular, when using Xcode 10 and react-native init
, your build may fail due to third-party build steps (#20774). There is a commit we are planning to cherry pick in a future release that should help – in the meantime, you should be able to run these commands from the project folder to fix the issue (you should need to do it only once per project):
$ cd node_modules/react-native $ scripts/ios-install-third-party.sh $ cd third-party/glog-0.3.5/ $ ../../scripts/ios-configure-glog.sh
源码下载 https://github.com/facebook/react-native/releases/tag/v0.57.4
转自 https://www.oschina.net/news/101176/react-native-0-57-4-released