React-Native v0.26.0 发布

jopen 8年前
   <p style="text-align: center;"><img alt="" src="https://simg.open-open.com/show/dccc9890e84dd9577c35752a1d6967ac.png" /></p>    <h2>简介</h2>    <p> React Native 使你能够使用基于 JavaScript 和 React 一致的开发体验在本地平台上构建世界一流的应用程序体验。React Native 把重点放在所有开发人员关心的平台的开发效率上——开发者只需学习一种语言就能轻易为任何平台高效地编写代码。非死book 在多个应用程序产品中使用了 React Native,并将继续为 React Native 投资。</p>    <p>React-Native 做了什么:</p>    <ul>     <li>React-Native 丢弃了 Webview。</li>     <li>复用React,将 Dom 结构de改变通过 diff 算法处理后,由 js 传递给 native 进行底层视图布局。</li>     <li>css-layout引擎,前端可以继续写熟悉的 css 语法,由引擎转化成 oc 底层的布局。</li>     <li>对 js 暴露底层常用的 UI 组建。js 层可以直接对这些组件进行布局</li>    </ul>    <h2>更新日志</h2>    <h3>重大更改</h3>    <ul>     <li>React API must be now required from <code>react</code> package (previously a warning on 0.25)</li>    </ul>    <h3>新特性</h3>    <ul>     <li>Upgrade to React 15.0.2 <a href="/misc/goto?guid=4958990454346185270">ba8878d#diff-b9cfc7f2cdf78a7f4b91a753d10865a2</a></li>     <li>Add support for sending and receiving binary data in websockets - <a href="/misc/goto?guid=4958990454443090536">ed930b4</a> <a href="/misc/goto?guid=4958990454557078655">20cae51</a></li>     <li>Add <code>--version</code> to CLI - <a href="/misc/goto?guid=4958990454650191133">856f9e9</a></li>     <li>Add <code>--reset-cache</code> to <code>react-native bundle</code> - <a href="/misc/goto?guid=4958990454738994222">90f9f48</a></li>     <li>Add encoding/hash signature to JS files - <a href="/misc/goto?guid=4958990454826985232">34dd17c</a></li>     <li><code>Platform.select</code> <a href="/misc/goto?guid=4958990454933570795">#7220</a></li>    </ul>    <h3>Bug 修复</h3>    <ul>     <li>Fix potential "Should never unset includeInLayout" invariant - <a href="/misc/goto?guid=4958990455011418113">ecae44a</a></li>     <li>Fix initial scenes rendering in NavigationExperimental - <a href="/misc/goto?guid=4958990455106678899">81c62c5</a></li>     <li>Fix incorrect layout for modal - <a href="/misc/goto?guid=4958990455200869235">85f7569</a></li>     <li>Fix stroke bug in ART - <a href="/misc/goto?guid=4958990455299669207">4e5c85b</a></li>     <li>Fix a bug in asset server when using relative project roots - <a href="/misc/goto?guid=4958990455392040791">3881694</a></li>     <li>Fix <code>flow</code> definitions for react-native - <a href="/misc/goto?guid=4958990455484489001">248879f</a> <a href="/misc/goto?guid=4958990455574321849">91d4a09</a></li>     <li>Removed exported constants for fixed-size views - <a href="/misc/goto?guid=4958990455669555990">c1aff6b</a></li>     <li>Fix usage of react-native cli inside package.json scripts - <a href="/misc/goto?guid=4958990455759547211">8295d27</a></li>     <li>Fix WebSocket compatibility with event-target-shim ^1.0.5 - <a href="/misc/goto?guid=4958990455861168203">8891f22</a></li>     <li>Fix JSWatchdog reset - <a href="/misc/goto?guid=4958990455954380771">1d802da</a></li>     <li>Fix Animated setValue to work properly on natively driven nodes - <a href="/misc/goto?guid=4958990456051044472">6c80f88</a></li>     <li>Fixed path to regenerator-runtime - <a href="/misc/goto?guid=4958990456133668779">ec5016a</a></li>     <li>Fix HMR preset - <a href="/misc/goto?guid=4958990456227893121">a2ee5bd</a></li>    </ul>    <h3>Android</h3>    <h3>新特性</h3>    <ul>     <li>Add ability to disable scroll on ViewPager - <a href="/misc/goto?guid=4958990456325952495">5a93877</a></li>     <li>Add ability to expose sync hooks from Java to JS - <a href="/misc/goto?guid=4958990456416374773">50d8d46</a></li>     <li>Add an option to load the Boost library from the filesystem - <a href="/misc/goto?guid=4958990456507016022">bc32e06</a></li>     <li>Add Support for Animated.add in native animations - <a href="/misc/goto?guid=4958990456602964203">b5375bd</a></li>     <li>Add support for setChildren - <a href="/misc/goto?guid=4958990456694797807">3a5457c</a></li>    </ul>    <h3>Bug 修复</h3>    <ul>     <li>Fix crash in AdsManager by no longer assuming only one react context exists at once - <a href="/misc/goto?guid=4958990456785886200">0a7a228</a></li>     <li>Fix crash caused by accessibility being turned on and using a Modal - <a href="/misc/goto?guid=4958990456884087676">57c40d9</a></li>     <li>Fix Popover location in Events - <a href="/misc/goto?guid=4958990456979102127">8e7ea11</a></li>     <li>Fix NullPointerException in setFontWeight method - <a href="/misc/goto?guid=4958990457070078553">1fb8643</a></li>     <li>Fix IndexOutOfBoundsException in MapView - <a href="/misc/goto?guid=4958990457162762490">446d7b7</a></li>     <li>Fix undefined <code>ref</code> in PullRefreshViewAndroid - <a href="/misc/goto?guid=4958990457252402163">d586daa</a></li>     <li>Fix events bubbling out of the Popover - <a href="/misc/goto?guid=4958990457349130941">eb21b25</a></li>     <li>Fix ReactNativeART arc drawing - <a href="/misc/goto?guid=4958990457451859719">1af4760</a></li>     <li>Fix ClassCastException inside TextInput - <a href="/misc/goto?guid=4958990457540407166">f323b02</a></li>     <li>Fix textShadowOffset error without width or height - <a href="/misc/goto?guid=4958990457642007405">3f0207d</a></li>    </ul>    <h2>iOS</h2>    <h3>重大更改</h3>    <ul>     <li>Add flag "-lc++" for all checked-in projects - <a href="/misc/goto?guid=4958990457730753543">8aa82d3</a></li>    </ul>    <h3>新特性</h3>    <ul>     <li>Add support for delete animation in LayoutAnimation - <a href="/misc/goto?guid=4958990457823816632">baa3668</a></li>     <li>Add support for badge icon number and alert action when scheduling local notification - <a href="/misc/goto?guid=4958990457921990618">84e6968</a></li>    </ul>    <h3>Bug 修复</h3>    <ul>     <li>Fix deadlock during app startup - <a href="/misc/goto?guid=4958990458006058354">9547a98</a></li>     <li>Fix RCTJavaScriptContextCreatedNotification - <a href="/misc/goto?guid=4958990458113117071">e195bf9</a></li>     <li>Fix autocomplete in rich-text editing mode for CJK text input - <a href="/misc/goto?guid=4958990458202064190">91dcc9a</a></li>     <li>Fix some issues with zero fontSizeMultiplier causing RCTShadowText measure function to return an infinite height - <a href="/misc/goto?guid=4958990458299105504">362738a</a></li>     <li>Fix memory leak with cookieMap in RCTJSCExecutor - <a href="/misc/goto?guid=4958990458390841618">32a8949</a></li>     <li>Fix images not displaying with HTTP response 301 - <a href="/misc/goto?guid=4958990458483635089">192ab66</a></li>     <li>Fix pressing a stack frame in Redbox not opening an editor - <a href="/misc/goto?guid=4958990458570266625">037e9ba</a></li>    </ul>    <h2>下载地址</h2>    <ul>     <li><a href="/misc/goto?guid=4958990458661655591" rel="nofollow"><strong>Source code</strong> (zip)</a></li>     <li><a href="/misc/goto?guid=4958990458756640223" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li>    </ul>