用 React 編寫移動應用,React Native 0.16 發布
ReactNative 可以基于目前大熱的開源JavaScript庫React.js來開發iOS和Android原生App。而且React Native已經用于生產環境——非死book Groups iOS 應用就是基于它開發的。
更新內容
JS
- </li>
-
For-of support: 5dc40af
</li> -
Support for ES6 modules in Babel plugins dff8f53
</li> </ul>Android
- </li>
-
Android view shadows: b65f1f2
</li> -
Proper touch handling for transformed Views on Android: c929e15
</li> </ul>0.16.0-rc
高級別改進
-
RGBA colors, i.e.
</li>rgba(255,0,0,0.5)
are supported. 3c04bfc -
React Native was upgraded to Babel 6.
</li> -
</li> </ul>Array.from
is available as a polyfill. c473974 https://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.fromAndroid
-
Android supports custom fonts; only TTF and OTF for now. bfeaa6a
</li> -
The Android ViewPager gets
</li>setPageWithoutAnimation
. 50b8b00 -
Images within a TextView, i.e. emojis, are now supported. a0268a7
</li> -
The Android performance profiler, Systrace, gets thorough documentation. d2c5045
</li> </ul>iOS
-
The
</li>keyboardAppearance
prop was added to iOS TextInput. Useful for displaying a dark keyboard. f407211 -
AsyncLocalStorage gets an in-memory cache. 397791f
</li> -
TextInput supports the
</li>onSelectionChange
event. 5a34a09 -
iOS
</li> </ul>RCTPasteboard
was released. Useful for copy-to-clipboard behavior. 26cb6be重大改進
-
React Native now uses Babel 6, props to Tadeu Zagallo for upgrading and thanks David Aurelio and Sebastian McKenzie for all the help! We've been using React Native with Babel 6 at 非死book for quite a while now. Nevertheless, please report any errors related to Babel, such as transforms for some JS features not working as expected and we'll fix them.
</li> -
Touch events on Android now have coordinates consistent with iOS: 0c2ee5d
</li> -
YellowBox enabled by default on iOS: 8ab5182
</li> -
JS decorators won't work until T2645 lands in Babel. It's being worked on. The proposal for decorators is not final and therefore Babel 6 left decorator support out for now.
</li> -
Exporting default class that extends a base class won't work due to Babel's T2694.
</li> -
</li>RCTSparseArray
was replaced byNSDictionary
. Modules usingRCTSparseArray
should update. fa0b45c -
</li> </ul>RCTWebViewExecutor
was removed. 0764e4e下載:https://github.com/非死book/react-native/archive/v0.16.0.zip。
本文由用戶 ffc8 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!
-
-
-
-