歡迎來到2018年6月發佈的React Native!超過53個貢獻者自3月份以來共提交了768次提交 - 咱們很是感謝大家每個人。前端
正如你將在一秒鐘內看到的那樣,這個新版本有一些重要的突破性變化,須要大量的額外努力才能達到穩定的0.56。這是6月從每個月發佈週期中跳過的主要緣由,但展望將來,咱們計劃每個月都要推出。node
React Native如今使用Babel7。升級到0.56時,請確保將其升級到react-native-babel-presetv5或更新版本。若是你有使用到,請及時更新,由於Babel 7不向後兼容。react
node 8如今是最低要求的版本。android
iOS 9如今是最低要求的版本。任何能夠運行iOS 8的設備均可以升級到iOS 9ios
WebView 只會默認加載http(s)網址,默認狀況下會禁用geolocation。git
爲幾個組件添加流類型。咱們正在遷移PropTypes和運行時檢查,而不是依靠Flow。在本發行版中,您會注意到與Flow有關的許多改進。github
修復較新的Xcode版本的項目設置警告,刪除沒必要要的控制檯日誌記錄。spring
不少錯誤修復。npm
Facebook內部團隊目前正在重寫一些核心架構。這是一項正在進行的工做,咱們並不指望在近期版本中使用它,但咱們以爲有必要讓你知道那些提到Fabric的提交者。json
babelHelpers用Babel 7支持更新- https://github.com/facebook/react-native/commit/fbd1beaf666be9c09a380784f8c0cd34ba083a6b
FlatList如今符合嚴格模式 - https://github.com/facebook/react-native/commit/a90d0e3614c467c33cf85bcbe65be71903d5aecc
啓用?.可選的連接運算符插件 - https://github.com/facebook/react-native/commit/aa6f394c4236e5a4998c3be8ed61ec1bab950775
支持flexWrap: 'wrap-reverse'- https://github.com/facebook/react-native/commit/d69e55060fd76d91eccc45905d250a9fce4b2c49
將prop添加accessibilityTraits到Text- https://github.com/facebook/react-native/commit/654435d1ed9e584e65fff601e1fa50591e042664
爲模板添加devDependencies支持 - https://github.com/facebook/react-native/commit/c4ab03a18e75e6ed55444b5d86f3ceee435b9a78
添加對springDamping的支持SpringInterpolator- https://github.com/facebook/react-native/commit/1dde989919d2c272ca7fcaa5c4b2d9ee02c490a0
Flow類型SegmentedControlIOS- https://github.com/facebook/react-native/commit/113f009698dbd8f1b4c1048d77ff1eb373021083
Flow類型ProgressViewIOS- https://github.com/facebook/react-native/commit/c87701ba05a8524756e87c089eb92c8f3c81823e
Flow類型PickerIOS- https://github.com/facebook/react-native/commit/1c66cdc7e8ce8190dfbef76629601497446b2b0a
Flow類型Switch- https://github.com/facebook/react-native/commit/06052a2330fc9c1dd0d56c6bbe5a17703f80c6b9
Flow類型Slider- https://github.com/facebook/react-native/commit/cbe045a95f1ca53d99ae521742a93299a53d6136
Flow類型RefreshControl- https://github.com/facebook/react-native/commit/891dfc3da4b5825097aedf73ff04e8982c00aeff
Flow類型ListView- https://github.com/facebook/react-native/commit/4b1ecb62045fbb78764d1f51030f2253be705c5c
Flow類型TextInput- https://github.com/facebook/react-native/commit/c8bcda8150278fde07331ca6958976b2b3395688
Flow類型爲TouchableBounce- https://github.com/facebook/react-native/commit/8454a36b0bc54cb1e267bc264657cc693607da71
Flow類型爲TouchableOpacity- https://github.com/facebook/react-native/commit/44743c07ad672e39668f92a801578906ec92996a
Flow類型TouchableHighlight- https://github.com/facebook/react-native/commit/f0c18dc820537892dcc33d5aebbf4f52cf299b95
Flow type for TouchableWithoutFeedback- https://github.com/facebook/react-native/commit/0b79d1faa21eb3c29aeeba08ee0fb2ed62e6cc54
Flow類型爲ScrollView- https://github.com/facebook/react-native/commit/b1276622791d5dbe4199bb075f473908c3e62b31
Flow類型DatePickerIOS- https://github.com/facebook/react-native/commit/97e572ea6d7b1fd829ca20f5d5c8ff970d88e68b
Flow類型KeyboardAvoidingView- https://github.com/facebook/react-native/commit/188b118b6075be1614c553596b85d430767f2dbc
Flow類型ActivityIndicator- https://github.com/facebook/react-native/commit/0b71d1ddb03c036ed118574c105b0af505da19fc
使用CRLF添加對build.gradle的支持react-native link- https://github.com/facebook/react-native/commit/843cfc3b202433aad9a236b1b623da7c45e1ac15
添加一種方法來解除PopupMeny元素 - https://github.com/facebook/react-native/commit/353c070be9e9a5528d2098db4df3f0dc02d758a9
實現Image.defaultSource- https://github.com/facebook/react-native/commit/b0fa3228a77d89d6736da6fcae5dd32f74f3052c
支持Image resizeMode = repeat - https://github.com/facebook/react-native/commit/0459e4ffaadb161598ce1a5b14c08d49a9257c9c
Yoga:添加不同意使用getParentAPI的方法 - https://github.com/facebook/react-native/commit/c3c5c3cbce24a31f73ae6339e377ee76ca6401ad
使用Xcode 9.4和iOS 11.4運行測試 - https://github.com/facebook/react-native/commit/c55bcd6ea729cdf57fc14a5478b7c2e3f6b2a94d
添加對自制軟件節點的支持 - https://github.com/facebook/react-native/commit/0964135a178b459e06b44a49a4ecb0dd6c5bec9b
添加textTransform樣式支持 - https://github.com/facebook/react-native/commit/8621d4b79731e13a0c6e397abd93c193c6219000
將Swift用法的文檔添加到RCTBridgeModule.h- https://github.com/facebook/react-native/commit/ca898f4367083e0943603521a41c48dec403e6c9
升級原生Babel 7 - https://github.com/facebook/react-native/commit/f8d6b97140cffe8d18b2558f94570c8d1b410d5c
react-native init使用Babel 7 建立的新項目- https://github.com/facebook/react-native/commit/e315ec9891eb0bcb51afb0e797dbd49aa8f9ac71
限制WebView到只有HTTP(S)網址:https://github.com/facebook/react-native/commit/634e7e11e3ad39e0b13bf20cc7722c0cfd3c3e28 https://github.com/facebook/react-native/commit/23f8f7aecb1f21f4f5e44fb9e4a7456ea97935c9
Node8如今是所需的最低版本 - https://github.com/facebook/react-native/commit/c1e6f278237e84c8ed26d3d2eb45035f250e2d40
將React渲染器同步到版本c0fe8d6 - https://github.com/facebook/react-native/commit/f59e5a8d28491c64e4d0c08fec3a2b0b3fabb38b
升級Flow到v0.74 - https://github.com/facebook/react-native/commit/3bed272a620ac806a6142327013265ea8138641a
將Prettier版升級到v1.13.4 - https://github.com/facebook/react-native/commit/29fb2a8e90fa3811f9485d4b89d9dbcfffea93a6
將Jest升級到v23.1.0 - https://github.com/facebook/react-native/commit/536c9372692712b12317e657fc3e4263ecc70164
將Metro升級至v0.38 - https://github.com/facebook/react-native/commit/d081f83a0487ffbc7d19f8edc7532611b359dfc6
將Buck升級至v2018.03.26.01 - https://github.com/facebook/react-native/commit/1324e7b5580db815471172cf6dd140124bd2f11a
不容許引用不變/警告 - https://github.com/facebook/react-native/commit/521fb6d041167ec8a8d0e98ac606db1f27f0c5c8
刪除本機道具類型驗證 - https://github.com/facebook/react-native/commit/8dc3ba0444c94d9bbb66295b5af885bff9b9cd34
將$ FlowFixMe添加到Flow以前沒有投訴的無效prop訪問 - https://github.com/facebook/react-native/commit/f19ee28e7d896aaacf26c6f850230019bdef0d3d
更新react-devtools-core並plist包含如下報告的安全修復程序npm audit- https://github.com/facebook/react-native/commit/3a1d949906acb0c3b44d125d54d0c99305bbbb56
更新Switch到ES6課程 - https://github.com/facebook/react-native/commit/970caa4552d4ba87c1a954391535ff42b00832e7
更新Slider到ES6課程 - https://github.com/facebook/react-native/commit/5259450c143f71c65e157d6b7d3f0e1655eb7aa1
更新ActivityIndicator到ES6類 - https://github.com/facebook/react-native/commit/edd7acbb1e6fe185600a19cc1cbb38feb16c85ad
更新RefreshControl到ES6課程 - https://github.com/facebook/react-native/commit/a35a23831789030e17f766f72d307ae315be107d
更新KeyboardAvoidingView到ES6類 - https://github.com/facebook/react-native/commit/c017dcb0f2903b49b2f21cc150226aeb7f5026ee
更新DatePickerIOS到ES6類 - https://github.com/facebook/react-native/commit/f8c8231706492b588331354d45b833aa21434e13
更新Text到ES6類 - https://github.com/facebook/react-native/commit/ab92c00245c0ce717819ddb0ab8b9204d4c13c34
替換context.isInAParentTextw / React.createContext- https://github.com/facebook/react-native/commit/e1339bc18303ca5394cd0c9dc97cededb2261581
清理Text實施 - https://github.com/facebook/react-native/commit/06c05e744d8af9582bde348210f254d76dae48b9
切換Text到React.forwardRef- https://github.com/facebook/react-native/commit/e708010d18f938e2d6b6424cfc9485d8e5dd2800
切換View到React.forwardRef- https://github.com/facebook/react-native/commit/3e534b9aab5156adac67762877b2457408fe8934
更新使用genMockFunction,並genMockFn以fn在測試- https://github.com/facebook/react-native/commit/390ded871cb905d149e9c1f4a082e67a7ec7addb
請ViewProps準確- https://github.com/facebook/react-native/commit/65c336f38f4afd43c8b5f81745abf38bd9b8ddbf
蔓延TVViewProps到ViewProps代替路口- https://github.com/facebook/react-native/commit/bc658d3c4405676643d952a126295dbc7fc26217
容許尾隨逗號 - https://github.com/facebook/react-native/commit/1e2de712907e5fe0d17648f0ff5c81d4384ca85b
使用let/ const- https://github.com/facebook/react-native/commit/8f5ebe5952d0675b463137103a82f3fb0c26ae0d
重構MockNativeMethods在Jest - https://github.com/facebook/react-native/commit/5d4c542c58d84bbe05f76bf01d9efdd9d438572c
app.json彈出後使用應用程序名稱- https://github.com/facebook/react-native/commit/57774a4a981e2f12cfe9b029447e34f203221b18
建議git apply --reject升級失敗 - https://github.com/facebook/react-native/commit/4fbd244b9a6b62e0efe1b4b5a7ec3de468f020f6
TouchHistoryMath從React 移動到React Native - https://github.com/facebook/react-native/commit/06085d38366373f3135074dc14e2c9871ca4fe29
重構RCTInputAccessoryView- https://github.com/facebook/react-native/commit/c136c54ff0211e2bf149fab600cd6e295f9d19dd
不要在額外的視圖中包裝ListEmptyComponent - https://github.com/facebook/react-native/commit/db061ea8c7b78d7e9df4a450c9e7a24d9b2382b4
將TextPropTypes 移動到它本身的文件 - https://github.com/facebook/react-native/commit/cd8128b2eccf6898cdf798a1e1be1f7a5762a0d4
ReactNative.NativeComponent在Jest中模擬原生方法 - https://github.com/facebook/react-native/commit/3e9a371ace5f25b2eb7a0d30177251f8a0c10ed9
收緊View和VirtualizedList- https://github.com/facebook/react-native/commit/5035af80ecddb44e2a8444780f25f336b760bf32
使值在ViewPropTypes- https://github.com/facebook/react-native/commit/f1316cab6c351852ef1da9939d4c8f0244fb8a6f中可選
propType對本地組件是可選的 - https://github.com/facebook/react-native/commit/dbdf43b428da19a9eba012753904bcf33339ea9a
將樣式重命名爲DangerouslyImpreciseStyle - https://github.com/facebook/react-native/commit/4895c645ea17ff939811f3d5ec6218cd4e31c5fb
iOS 9如今是最低要求的版本 - https://github.com/facebook/react-native/commit/f50df4f5eca4b4324ff18a49dcf8be3694482b51
更新podspecs以定位iOS 9 - https://github.com/facebook/react-native/commit/092103e7525e58e04346e0a1a16a67ca4f31c2e9
在WebSocket中阻止iOS 11.3+的控制檯日誌記錄 - https://github.com/facebook/react-native/commit/8125be942bd5fd8fe851bad04ae6b9bcb0af4727
公開RCTFont尺寸覆蓋 - https://github.com/facebook/react-native/commit/6611fefef7559c4cd3d1824235d263bff210d5e2
Android的具體變化
可口可樂如今播放聲音 - https://github.com/facebook/react-native/commit/722f88ca9058c5d902c416b826a7a7ab347326b8
默認underlineColorAndroid爲透明 - https://github.com/facebook/react-native/commit/a3a98eb1c7fa0054a236d45421393874ce8ce558
WebView默認禁用地理位置 - https://github.com/facebook/react-native/commit/23d61b35fb6fdbfb84f77b6d99ff155a0ff868e6
確保包含非法字符的cookie不會發送到okhttp - https://github.com/facebook/react-native/commit/04028bf2169b01f79bd86ecd6b0d8aa5f99599f1
更新應用圖標以匹配最近的Android版本 - https://github.com/facebook/react-native/commit/94393f8652c414806fc861c214ad36e9ac1b6114
更好的錯誤訊息ReadableNativeMap- https://github.com/facebook/react-native/commit/30d06b42862fc5e8704e109db652d62f86f8eabc
將Fresco更新到v1.9.0,okhttp3更新到v3.10.0 - https://github.com/facebook/react-native/commit/6b07602915157f54c39adbf0f9746ac056ad2d13
爲內嵌圖標添加色調顏色 - https://github.com/facebook/react-native/commit/e8e2a6e4102c1ba0ee3d068769e47fa61c160524
修復抗鋸齒圓角背景 - https://github.com/facebook/react-native/commit/7500b3ec839ada6d8e1f7a88d30743dfb0ad7e70
防止在打開模式時顯示隱藏狀態欄 - https://github.com/facebook/react-native/commit/076b1cea3563cae30e11d63cc100ceaed9082692
修復Perf Monitor啓用時從新加載時的崩潰 - https://github.com/facebook/react-native/commit/4fcd9970bd2dfb24890bc87e9c82e16dab71ec09
修復遠程調試器中的併發問題 - https://github.com/facebook/react-native/commit/e5aa5b7c508c5e0e51f7abfcee350e27bef24ba2
修復Modal + FlatList滾動 - https://github.com/facebook/react-native/commit/8799047dd0bc8dd93f05fa97d4b9a59f7dfeb324
修復RCTNetworking在無效期間並不是全部任務/處理程序都被清除的錯誤- https://github.com/facebook/react-native/commit/b8051720344f3716e964eaf7cfdd2a91dc703602
修復鍵盤處理keyboardShouldPersistTaps: never- https://github.com/facebook/react-native/commit/ffe6c110f7ce33460fe0399ccbda16a6adbe90ca
修復響應者邏輯Text- https://github.com/facebook/react-native/commit/e2ce22b823661a7dcf6b70a825921a2910383bd1
修復VirtualizedSectionListlint警告 - https://github.com/facebook/react-native/commit/26a1eba1cef853b0dab7aad5731699c06d36b781
修復VirtualizedSectionList:ItemWithSeparators- https://github.com/facebook/react-native/commit/488a4c7e1c86ac5900ff9194106511fbf5a8e3cb
修復了TextInput初始佈局測量 - https://github.com/facebook/react-native/commit/c6b4f9f2ce59bc757d9e211f46294faa03df55c6
修復requireNativeComponent檢查 - https://github.com/facebook/react-native/commit/1c90a2b47b420a4b6aa16a55a344cc08f0eacbe3
修復TextInputautocapitalization bug - https://github.com/facebook/react-native/commit/ff70ecf868cf12fc66b45dc1496391d0a1e9011f
添加缺乏的事件ViewPropTypes- https://github.com/facebook/react-native/commit/41a940392cea497bc5eb627b24083d0211d1eb89
添加缺乏的Jest模擬StatusBarManager- https://github.com/facebook/react-native/commit/4a2c560768abb2d8407900fdb2fbe4971ae00a1c
爲Metro模塊添加流程聲明 - https://github.com/facebook/react-native/commit/1853e1519030caaeeb7f31017d98823aa5696daf
修正類型ReactNative.NativeComponent(1/2) - https://github.com/facebook/react-native/commit/de11ba2a5ee90929dbc67d914de59bdd2ebc29ca
修正類型ReactNative.NativeComponent(2/2) - https://github.com/facebook/react-native/commit/752863629d63bca6d96a101bfeccc4e7ad3e953e
將圖像PropTypes移至新文件 - https://github.com/facebook/react-native/commit/67656991b32075e8b4a99c6409b0a131206c6941
刪除$ FlowFixMe TouchableBounce- https://github.com/facebook/react-native/commit/ffda0178509ed92396f15db37a41d3d668ade4e6
刪除$ FlowFixMe ScrollView- https://github.com/facebook/react-native/commit/af6e2eb02d3651f869b5436e68e61ef3ab3405a0
刪除$ FlowFixMe ListView- https://github.com/facebook/react-native/commit/af6e2eb02d3651f869b5436e68e61ef3ab3405a0
刪除$ FlowFixMe Text- https://github.com/facebook/react-native/commit/6042592cf46787f089e76b661376705380607207
刪除$ FlowFixMe RTLExample- https://github.com/facebook/react-native/commit/206ef54aa415e3e2bb0d48111104dfc372b97e0f
刪除$ FlowFixMe AppContainer- https://github.com/facebook/react-native/commit/a956551af73cf785ee4345e92e71fd5b17c5644e
刪除$ FlowFixMe Slider- https://github.com/facebook/react-native/commit/1615f9d16149c7082ce0e1485aa04a6f2108f7ba
測試:修復運行Jest時的JUnit報告位置 - https://github.com/facebook/react-native/commit/85fc98d437c08cdec883a73161e120478737ba72
測試:修復ReactImagePropertyTest SoLoader失敗(#19607) - https://github.com/facebook/react-native/commit/a52d84d7e1cdb287f2877c4d85f2e9866c248d43
測試:在Windows上修正jest快照測試 - https://github.com/facebook/react-native/commit/216bce31632480ce70cc03b1b2a57ec12440afd7
修復InputAccessoryView安全區域的性能 - https://github.com/facebook/react-native/commit/490f22ae72ba43fa9364ce0f6c238744c07ac830
修正在頭文件中使用C ++語法 - https://github.com/facebook/react-native/commit/bfcfe7961db0970e2575eafe2f3c9c668bd8940d
運行時修復安裝步驟run-ios- https://github.com/facebook/react-native/commit/0934c1778f0e3c0b691e1a3ca2df1d486eb905dd
修復了run-ios未啓用模擬器 - https://github.com/facebook/react-native/commit/9736ddc061e9c4291df8a3185c7f9d6f73e435c7
爲魚鉤使用正確的庫參考。這修正了Xcode 9和Xcode 10上的新Xcode構建系統的構建 - https://github.com/facebook/react-native/commit/a8b74576da6f1a42fde4e39f97e88c8f45a3a51d
將缺乏的onChange事件定義添加到DatePickerIOS- https://github.com/facebook/react-native/commit/3b53091869b673ea33a4af34242e2227ca944768
修復Xcode 9.3存檔階段的崩潰 - https://github.com/facebook/react-native/commit/344c205070d5ad670c97984dd86ec9ac13c73f81
RNTesterPods:添加缺乏的愚蠢包括 - https://github.com/facebook/react-native/commit/128c9343c464f3e7898d6e245f135f8bdf6caa6a
RNTesterPods:愚蠢::可選的has_value(),以hasValue()直至愚蠢升級- https://github.com/facebook/react-native/commit/128c9343c464f3e7898d6e245f135f8bdf6caa6a
RNTesterPods:修復導入RCTTestAttributes.h- https://github.com/facebook/react-native/commit/128c9343c464f3e7898d6e245f135f8bdf6caa6a
RNTesterPods:修復conversions.h使用名稱空間包括 - https://github.com/facebook/react-native/commit/128c9343c464f3e7898d6e245f135f8bdf6caa6a
修復或標記枚舉轉換浮出水面-Wenum-conversion- https://github.com/facebook/react-native/commit/b8f30db0ae21d5f96547702abbf50aefa93b1094
修復CocoaPods集成,無需DevSupport subspec - https://github.com/facebook/react-native/commit/c09d509c2b8a5a02701829e1f0ace8081ce64277
更新瑜伽來處理Xcode框架項目 - https://github.com/facebook/react-native/commit/cf036dbc7af16a8453c115372694dc51e8086fcf
修復Blob內存泄漏 - https://github.com/facebook/react-native/commit/122b3791ede095345f44666691aa9ce5aa7f725a
正確繪製路徑的尺寸,同時作邊框,修復模糊的邊框 - https://github.com/facebook/react-native/commit/c5ca26a0e5c0660196300ee34d6007c63879611f
不經過額外的參數,以requireNativeComponent在.android.js文件- https://github.com/facebook/react-native/commit/a51e8b19cc4dc36dee42ac95278b883c06b2e40f
防止RefreshControl父母水平滾動時卡住 - https://github.com/facebook/react-native/commit/33ffa79a51d4db9ba69148861f2da304646175cd
防止因爲不支持的省略號模式致使崩潰 - https://github.com/facebook/react-native/commit/85e33aaf908996e99220bff4a2bdbbdf7c0d12b0
修復okhttp3響應處理DevServerHelper- https://github.com/facebook/react-native/commit/56d48bd9ecd2d0f08625259121312531064a09f2
修復ReactInstanceManagerunmountApplication以支持ReactRootView回收 - https://github.com/facebook/react-native/commit/4a9b2a73021fb547febe1fa193c3effb7ff8da4e
NullPointerException使用UIManagerModule- https://github.com/facebook/react-native/commit/291c01f4ffe614760852e36b05d78b42cb4271df排除事件時進行修復
修復Android製做指南連接 - https://github.com/facebook/react-native/commit/57e7556b8db61e5fcc3ccea56c1b163b82a091a6
修復Android開源測試失敗 - https://github.com/facebook/react-native/commit/3e0ebc76632238f21c60caa92c7a2b5ee8102b71
使用LayoutAnimation修復視圖索引 - https://github.com/facebook/react-native/commit/d8fcdb9bd7a308ed70caeac1b53da0a05abe452f
修復originalNode內存泄漏 - https://github.com/facebook/react-native/commit/8102e35271ab68e0525a9c60d86a855bbeef9c1a
修正ScrollView了TextInput- https://github.com/facebook/react-native/commit/2f1421dec7cd3a35779caceac108e872033c7d72
處理程序未定義時禁用onKeyPRess邏輯 - https://github.com/facebook/react-native/commit/41975f75d96ef4b606b4618461bf24d5db063b77
已刪除:已刪除的功能; 這些都打破了
棄用focusTextInput和blurTextInput- https://github.com/facebook/react-native/commit/ce3b7b8204dad0fd62a76a0ce66472eca4b25bc8
刪除本機擴展 - https://github.com/facebook/react-native/commit/7c5845a5a26592598c9380df078766a680a23f06
刪除Fresco ProGuard規則 - https://github.com/facebook/react-native/commit/07df36557c8cbbaee5e870460162aa725a606ff4
已移除已棄用的UIActionSheetDelegate方法 - https://github.com/facebook/react-native/commit/5863b564f84b9fe97b256f8cde0f7f2e1db9b641
關注小編 公衆號:LearningTech 每日更新前端技術