React Native v0.29-rc released
v0.29-rc on GitHub (npm)
Breaking changes
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
Android
-
Add
ReactInstanceHolder
(49f20f4) - @foghinaMigration instructions
- Create a new file
MainApplication.java
in the same folder asMainActivity.java
- Update it to match - https://github.com/facebook/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/facebook/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,
<application + android:name=".MainApplication" android:allowBackup="true" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:theme="@style/AppTheme">
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
- Create a new file
-
Remove support for password property and only use secureTextEntry (f3507f9) - @dmmiller
-
Remove the Profiler Option in RN Android Dev Menu (4b19db3) - @lebronJ
iOS
- Automatically clip subviews when
removeClippedSubviews
prop is used (1048e5d) - @nicklockwood - Remove deprecated methods from StatusBarIOS (4de616b) - @javache
General
Bug fixes
- 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
New features and enhancements
- 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
Android
Bug fixes
- 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
New features and enhancements
- Open source permissions module (b7352b4) - @andreicoman11
iOS
Bug fixes
- 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
New features and enhancements
- 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