React-Native v0.31.0 和 v0.32.0-rc.0發布
React Native 使你能夠使用基于 JavaScript 和 React 一致的開發體驗在本地平臺上構建世界一流的應用程序體驗。React Native 把重點放在所有開發人員關心的平臺的開發效率上——開發者只需學習一種語言就能輕易為任何平臺高效地編寫代碼。非死book 在多個應用程序產品中使用了 React Native,并將繼續為 React Native 投資。
React-Native 做了什么:
- React-Native 丟棄了 Webview。
- 復用React,將 Dom 結構de改變通過 diff 算法處理后,由 js 傳遞給 native 進行底層視圖布局。
- css-layout引擎,前端可以繼續寫熟悉的 css 語法,由引擎轉化成 oc 底層的布局。
- 對 js 暴露底層常用的 UI 組建。js 層可以直接對這些組件進行布局
更新日志
v0.31.0日志
Bug修復
- Fix the getRowData method of SwipeableListViewDataSource in SwipeableListView (ba3c7ef) -@sscaff1
- Fix bug in cancelling last task in TaskQueue (9b184cc) - @sahrens
- Fix Navigator transition (5189c94) - @hedgerwang
- Use active scene passed in
props
byNavigationTransitioner
(46a6851) - @jmurzy - Change NavigatorSceneConfig for RTL (cadc753) - @MengjueW
- Don't block scroll when using non-touchable visible row for SwipeableRow (13a19a8) - @chirag04
- RN: Change Time Drift Error into Warning (ed4db63) - @yungsters
新功能和增強功能
- Merge
rnpm
(e8b5081) - @grabbou @Kureev - Add JSCHelper function to easily install native hooks outside of JSCExecutor (f534560) - @astreet
- Add MessageQueue method for executing function and returning its result (7fa677f) - @javache
- Add completion callback to enqueueJSCall (23e28ec) - @javache
- Add RTL support for SwipeableRow (7e5fc17) - @MengjueW
- Export SwipeableListView component. (a2c6a7b) - @chenxsan
- Implement TextInput onContentSizeChange (2537157) - @janicduplessis
- Better error message when trying to parse a empty body in fetch (eeb9cd8) - @astreet
- Provide RTL support for new Navigator -- Make RTL works in NUX (38a6eec) - @MengjueW
- Open in editor button for yellow box (c65eb4e) - @skv-headless
- Initial implementation of requestIdleCallback (18394fb, 5618c3f) - @janicduplessis
- Throw flow error when trying to access a style that is not defined on a stylesheet to catch typos and unused styles (a564af8) - @brentvatne
Android
Bug修復
- Fix padding with Text on Android (c3f2bba) - @dmmiller
- Fix timestamps on android touch events to use milliseconds, to be consistent with iOS (4f5c2b4) -@mikelambert
- Don't hard crash if you get a null stack trace in Android (b5c3550) - @astreet
- Fix removing views from ViewPagerAndroid (b0c023c) - @foghina
- Fix handling of line height with inline images (c4ffc7d) - @rigdern
- Fix Spacing lifecycle issue introduced by D3516692 (8c9f190) - @dmmiller
- Fix 'Unexpected EOF' in old bridge (6d3c7b8) - @astreet
- Fixed position of ripple-effect (d73446c) - @noerK
- Fixed the issue due to which js assets are not bundled in the apk when separate build for different CPU architectures is enabled (c0316c6) - @kgritesh
- Fix Android WebView additional schemes, e.g.- “tel:” (33a1f28) - @sathyapriya-31
新功能和增強功能
- Make getCurrentActivity public on ReactContext (7606564) - @marcshilling
- Add support for layout gravity to ToastAndroid (12ec213) - @donyu
- Support RefreshControl in RecyclerViewBackedScrollView in Android (0c0ac6e) - @tegon
- Support geolocation in android webview (b7bf24b) - @jvassbo
- Add new FileSourceProvider (5d06918) - @tadeuzagallo
- Add API to CatalystInstanceImpl for executing optimized bundle (1331e20) - @michalgr
- Allow apps to provide JSBundleLoader of their choice (e632025) - @michalgr
iOS
Bug修復
- Fix double completion callback in RCTJavascriptLoader (4aedcc7) - @javache
- Wrap native module I18nManager with a new RCTI18nManager.js and fix current use of native module I18nManager (471ee87) - @MengjueW
- Fix misusage of NSUInteger * in RCTImageStoreManager (f317b9f) - @jesseluo
- Fix description of AlertIOS.prompt()'s parameter defaultValue. (f38d9a1)
- Provide correct initial value for AppState.currentState (68b0ce6) - @rigdern
- Fix TextInput stack overflow when pasting text in multiline input with maxlength (23e087f) -@javache
- Create a CSSLayout CocoaPods subspec that preserves the header directories (ee89ffc) - @ide
- Fix RCTImageLoader's priority (ffb690f) - @nathanajah
新功能和增強功能
- Add the ability to pre-create the JavaScript thread with RCTJSCExecutor (39cb110) - @adamjernst
- Add responseType as a concept to RCTNetworking, send binary data as base64 (08c375f) -@philikon
- Add ability to customize error messages and stacks within the iOS redbox (9d2e6a2) -@DavidGoldman
- Add Image resizeMode center to iOS (bee1180) - @aleclarson
- Add more profiling markers to RCTJSCExecutor (63e0e6c) - @javache
- Add [RCTShadowView isCSSLeaf] for skipping css tree of children (0587c85) - @emilsjolander
- Expose a way to get the JSContext from a RCTJSCExecutor (5323b77) - @adamjernst
- Make bridge initialization configurable (4269003) - @javache
下載
- v0.31.0 Source code (zip)
- v0.31.0 Source code (tar.gz)
- v0.32.0-rc.0 Source code (zip)
- v0.32.0-rc.0 Source code (tar.gz)
本站原創,轉載時保留以下信息:
本文轉自:深度開源(open-open.com)
原文地址:http://www.baiduhome.net/news/view/4ce27bac
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!