React-Native v0.27-rc 發布
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 層可以直接對這些組件進行布局
更新日志
重大更改
- Kill NavigationLegacyNavigator (ef44781) - @hedgerwang
- Kill NavigationExperimental Containers (14eb427) - @ericvicenti
- Kill NavigationView (c3714d7) - @hedgerwang
新功能和增強功能
- Animated: Implement toJSON method of Animated (17f0807) - @wusuopu
- Make RefreshControl properly controlled by JS (9aa37e8) - @janicduplessis
- Add SwipeableListView (052cd7e 9b1a3c7 2a7f6ae) - @fred2028
- Expose a new prop
transition
for scene renderer. (55c3086) - @hedgerwang - Add support for custom files in BugReporting (610cfdc) - @lexs
- Add "Open file" button to elements inspector (f203c5d) - @frantic
- Add
transform-react-jsx-source
to react-native preset (858643d) - @frantic - Fork NavigationAnimatedView to NavigationTransitioner (7db7f78) - @hedgerwang
- Merge rnpm into react-native (149d0b9) - @grabbou
Bug修復
- Protect against JS module call race condition while initializing react instance (a1ba091) - @astreet
- Fix propType check for NavigationCard. (b1cd1cb) - @hedgerwang
- Fix RefreshControl race condition (8fbce30) - @janicduplessis
- NavigationExperimental:
didFocus
event should fired after transition finishes. (8975bb8) -@hedgerwang - Fix RefreshControl on initial render will not beginRefresh when refreshing (cac5ce3) - @aforty
- Fix a bug where NavigationPropTypes.SceneRenderer was a plain object (0e997c6) - @joenoon
- Prevent
SwipeableRow
bleed (5146775) - @fred2028 - Fix 95% of WindowedListView jumpiness (5e91a2a) - @sahrens
- Fix Android flash and iOS juttering (62e588b) - @fred2028
- Fixed incorrect rows reported in onChangeVisibleRows (0aea74e) - @dmueller39
Android
新功能和增強功能
- Add pagingEnabled to HorizontalScrollView (a3146e4) - @dmmiller
- Open sourced SwipeRefreshLayoutRecordingModule (457e348) - @bestander
- Implement returnKeyType/returnKeyLabel (dd8caf4) - @Bhullnatik
- Add progressViewOffset to RefreshControl (f7ce0c1) - @UnoDeTantos
- Ability to disable/lock the android ViewPager scroll from props (31250ad) - @kevinejohn
- Fix race condition when clicks are received on react root view and react context is pending (fd37666) - Olivier Notteghem
- Add FpsListener to React Scroll Views (b67d4a2) - Nathan Spaun
- Upgrade to OkHttp3 (6bbaff2) - @AndrewJack
- Fix NetworkingModule construction with interceptors (921d0de) - @bestander
- More helpful error message when react-native start is forgotten (bc634ea) - @codeheroics
Bug 修復
- Fix Android picker controlling (0cd2904) - @spicyj
- Make Modal Status Bar Translucent (191d278) - @jemise111
- Increase the stack size for the React queue on older Android phones (d4f6f61) - @nikki93
- Update the timestamp we send in touch events to be the more accurate (f2c1868) - @dmmiller
iOS
新功能和增強功能
- NavigatorIOS: Expose interactivePopGestureEnabled property (4d2c72b) - @rigdern
- Make the root view background color explicit (fa5d1fe) - @shaneosullivan
- Callback with image height and width from IOSImagePicker (df40f48) - @thans
- Enable views to be nested within (fe5c0d2) - @rigdern
- Add Copy Stack button to Red Box (5047f6f) - Chris Evans
Bug 修復
- Fix distanceFilter caching for LocationObserver (2310494) - @jrichardlai
- ScrollView: Always fire onScroll event for the resting scroll position (deef8aa) - @rigdern
- Fixed crash due to inserting a nil object into an array in Image loader (ed1ee9b) - @nicklockwood
- Provide correct animation function for hiding keyboard (03edc75) - @rigdern
- Fixed NativeEventListener deregistration (516bf7b) - @nicklockwood
下載
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!