React-Native v0.29-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 層可以直接對這些組件進行布局
更新日志
重大更改
General
- Kill NavigationReducers (3a8b50a) - @hedgerwang
- NavigationExperimental - Clean up NavigationStateUtils (67002e8) - @hedgerwang
- Remove the logic that lets NavigationStateUtils accept empty value as input and return a new state.
- Remove the method
NavigationStateUtils.getParent
,NavigationStateUtils.set
.
- NavigationExperimental - Remove prop
onNavigate
(fb0007d) - @hedgerwang
</ul>
-
Add
ReactInstanceHolder
(49f20f4) - @foghinaMigration instructions
- Create a new file
MainApplication.java
in the same folder asMainActivity.java
- Update it to match - https://github.com/非死book/react-native/blob/0.29-stable/local-cli/generator-android/templates/package/MainApplication.java and move your customisations from
MainActivity.java
to this file - Update
MainActivity.java
to match - https://github.com/非死book/react-native/blob/0.29-stable/local-cli/generator-android/templates/package/MainActivity.java - Add
android:name=".MainApplication"
in the<application />
section ofAndroidManifest.xml
. It should now look like,
</ol> - android:name=".MainApplication"
android:allowBackup="true"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:theme="@style/AppTheme"></pre>
The experience might vary according to the level of customization you've made. Check this commit to see how UIExplorer and MoviesApp were migrated - dcc2abc
</li> - Remove support for password property and only use secureTextEntry (f3507f9) - @dmmiller
- Remove the Profiler Option in RN Android Dev Menu (4b19db3) - @lebronJ </ul>
- Automatically clip subviews when
removeClippedSubviews
prop is used (1048e5d) -@nicklockwood - Remove deprecated methods from StatusBarIOS (4de616b) - @javache
- Fix left button moving in instead of fading in in NavigationBar (8731494) - @dragonwong
- Fix incorrect import reference for
emptyFunction
inSwipeableListView
(2fd537c) - @glawson - Fix onLayout support in
<TextInput>
(92926f9) - @paulshen - Don't clobber user-defined environment variables (402e7ea) - @vkarpov15
- Fix polyfillLazyGlobal to work with allowTopLevelThis = false (f9e26b3) - @janicduplessis
- Show stacktrace in YellowBox (8d03857) - @skv-headless
- Add
StyleSheet.absoluteFill
convenience constant (e79f5d7) - @sahrens - Changed version of React dependency to ~ (592d5fb) - @bestander
- Open sourced KeyboardAvoidingView (8b78846) - @nicklockwood
- Allow CameraRoll to export videos (7357ccc) - @corbt
- Clear Debug Console on Reload JS (b03a725) - @yungsters
- Make InteractionManager tasks cancellable (be09ccc) - @sahrens
- Add support for reverse flex directions on Android and iOS (d43e0db) - @feichngr
- Add support for
lineBreakMode
prop on<Text>
(c03b166) - @skv-headless - Fix an issue where scrollview wouldn't unclip its cells (1fcd73f) - @majak
- Make module IDs deterministic when bundling (62bb09d) - @davidaurelio
- Enable Double R shortcut to reload JS when redbox is shown (4959b21) - @lebronJ
- Fix deletion layout animations to work with custom view managers (49a5fe4) - @astreet
- Fix crash when Modal is displayed as a result of touch handling code (837aafd) - Olivier Notteghem
- Properly validate layout animation config (d4e7c8a) - @janicduplessis
- Fix potential NPE in layout animation deletion code (bb9ed2d) - Olivier Notteghem
- Fix bug where UIOperations aren't executed after hosting Activity is paused (eef03fd) - @astreet
- Remove iOS platform check for running devtools (1b40db7) - @kageurufu
- Fix dialogmodule crashing with no fragment manager in onHostResume (bf79352) - @foghina
- Open source permissions module (b7352b4) - @andreicoman11
- Fixed bug where layoutSubviews was called continuously for scrollview (329c716) -@nicklockwood
- Explicitly set default background color in RCTTextView (1fce891) - @bnham
- Fixed MapView's draggable annotation (993a928) - @nathanajah
- Handle the case where redirect URL is relative (39eca05) - @maartenschumacher
- Fix unbale to scroll in image cropper (13dfb62) - Wenjing Wang
- Correctly passes localNotification to app on wakeup (57d4523) - @corbt
- Add
getScheduledLocalNotifications
(5b4b027) - @joshuapinter - Implement CSS z-index for iOS (d64368b) - @nicklockwood
- Add support for native animations on iOS (19e2388) - @buba447
- Prevent images from flickering when component is reloaded (c8f39c3) - @nicklockwood
- Implemented automatic IP detection for iOS (8c29a52) - @nathanajah
- Support {min,max}{Width,Height} on RCTView (78b8929) - @javache
<application
iOS
General
Bug修復
新功能和增強功能
Android
Bug修復
新功能和增強功能
iOS
Bug修復
新功能和增強功能
下載
- Create a new file
Android
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!