React-Native v0.26.0 發布

jopen 8年前發布 | 20K 次閱讀 IOS Android 原生應用 React-Native JavaScript

簡介

 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 層可以直接對這些組件進行布局

更新日志

重大更改

  • React API must be now required from react package (previously a warning on 0.25)

新特性

Bug 修復

  • Fix potential "Should never unset includeInLayout" invariant - ecae44a
  • Fix initial scenes rendering in NavigationExperimental - 81c62c5
  • Fix incorrect layout for modal - 85f7569
  • Fix stroke bug in ART - 4e5c85b
  • Fix a bug in asset server when using relative project roots - 3881694
  • Fix flow definitions for react-native - 248879f 91d4a09
  • Removed exported constants for fixed-size views - c1aff6b
  • Fix usage of react-native cli inside package.json scripts - 8295d27
  • Fix WebSocket compatibility with event-target-shim ^1.0.5 - 8891f22
  • Fix JSWatchdog reset - 1d802da
  • Fix Animated setValue to work properly on natively driven nodes - 6c80f88
  • Fixed path to regenerator-runtime - ec5016a
  • Fix HMR preset - a2ee5bd

Android

新特性

  • Add ability to disable scroll on ViewPager - 5a93877
  • Add ability to expose sync hooks from Java to JS - 50d8d46
  • Add an option to load the Boost library from the filesystem - bc32e06
  • Add Support for Animated.add in native animations - b5375bd
  • Add support for setChildren - 3a5457c

Bug 修復

  • Fix crash in AdsManager by no longer assuming only one react context exists at once - 0a7a228
  • Fix crash caused by accessibility being turned on and using a Modal - 57c40d9
  • Fix Popover location in Events - 8e7ea11
  • Fix NullPointerException in setFontWeight method - 1fb8643
  • Fix IndexOutOfBoundsException in MapView - 446d7b7
  • Fix undefined ref in PullRefreshViewAndroid - d586daa
  • Fix events bubbling out of the Popover - eb21b25
  • Fix ReactNativeART arc drawing - 1af4760
  • Fix ClassCastException inside TextInput - f323b02
  • Fix textShadowOffset error without width or height - 3f0207d

iOS

重大更改

  • Add flag "-lc++" for all checked-in projects - 8aa82d3

新特性

  • Add support for delete animation in LayoutAnimation - baa3668
  • Add support for badge icon number and alert action when scheduling local notification - 84e6968

Bug 修復

  • Fix deadlock during app startup - 9547a98
  • Fix RCTJavaScriptContextCreatedNotification - e195bf9
  • Fix autocomplete in rich-text editing mode for CJK text input - 91dcc9a
  • Fix some issues with zero fontSizeMultiplier causing RCTShadowText measure function to return an infinite height - 362738a
  • Fix memory leak with cookieMap in RCTJSCExecutor - 32a8949
  • Fix images not displaying with HTTP response 301 - 192ab66
  • Fix pressing a stack frame in Redbox not opening an editor - 037e9ba

下載地址

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!