0.28.0
Thanks to 87 contributors who put 182 commits into this release!
Special thanks to @satya164 for writing this release notes!
General
Breaking changes
- NavigationExperimental - Rename
NavigationState
toNavigationRoute
, renameNavigationParentState
toNavigationState
(807726b) - @hedgerwang - NavigationExperimental - Rename
scene.navigationState
toscene.route
(fb5d0ff) - @hedgerwang - NavigationExperimental - Rename
navigationState.children
tonavigationState.routes
. (1e62602) - @hedgerwang - Remove deprecated
PullToRefreshViewAndroid
andonRefreshStart
/endRefreshing
(a71a9ef) - @janicduplessis - NavigationExperimental - Remove
key
fromNavigationState
. (f7279b4) - @hedgerwang - Updates to css-layout leading to many fixes but requiring some breaking changes:
- flex styling property behavior now behaves slightly differently. If you previously used
flex: 1
where not necessary this change will likely break your layout as the measuring behavior is slightly different than before due to performance optimizations. Removing that unnecessaryflex: 1
will solve your layout in most cases. - Due to performance tweaks
flexWrap: wrap
no longer works together withalignItems: 'stretch'
(the default). If you useflexWrap: wrap
you probably will want to add thealignItems: 'flex-start'
style as well.
- flex styling property behavior now behaves slightly differently. If you previously used
Bug fixes
- Prevent Systrace from including React in the preloaded modules section (4880309) - @javache
- Set statics on the NavigationCard container (1343248) - @ide
- Respect original enumerability/writability when polyfilling globals (3d8725d) - @davidaurelio
- Fixed multiline textinput onChange event (57e9df4) - @nicklockwood
- Fix TextInput autocorrect (#7496) (26aa27d) - @rigdern
- Fixed "Sending
didSendNetworkData
with no listeners registered" warning (bdcdfb0) - @nicklockwood - Fix prop update perf issue with windowed list view (4455426) - @sahrens
- Removed hard-coded DatePicker width (002024c) - @nicklockwood
- Correct semantics for
XMLHttpRequest.responseText
(e293502) - @philikon - Fix header elevation of NavigationExperimental (3f92e09) - @marcobonaldo
- Fix for "Unable to resolve module nullthrows" (1facfb7) - @jgibbons
New features and enhancements
- Show better error message when accessing React APIs on React Native (6069fdd) - @satya164
- Add a removeListener method to DeviceEventEmitter (0e8c3ff) - @rahuljiresal
- Expose Systrace from the 'react-native' package (1e4d9d4) - @philikon
- Add
Array.prototype.includes
polyfill (ed47efe) - @Kerumen - Improve how inspector handles native components (bdab834) - @frantic
- Add cross platform
ActivityIndicator
(26e8426) - @janicduplessis - Hook react-native link calls into rnpm (7028929) - @mkonicek
- Inline
Platform.select
(8c3db97) - @davidaurelio
Android
Bug fixes
- Fix the WebSocket sendBinary error (6c3306d) - @sreesharp
- Add Fresco to ProGuard (3716ce7) - @charpeni
- Fix layout animation to be executed when it shouldn't (a7a34a1)
- Don't close reference to image in getSize (ccd0181) - @ahmedre
- Fix NPE when NetworkingModule runs onCatalystInstanceDestroy (4378ecb) - @bestander
- Fix RefreshControl race condition (bb5aede) - @janicduplessis
- Correctly implement measure callback with measure modes (1767a0a) - @emilsjolander
- Fix leak in Nodes due to removeClippedSubviews (caa2bae) - Ahmed El-Helw
- Use RN version from node_modules instead of jcenter (84f82e5) - @devfd
- Prevent race condition leading to deadlock when destroying activity w/ catalyst instance (80741a1) - Olivier Notteghem
- Fix can't use binary number on android except on debug mode (#7526) (98dd918) - @RobRoseKnows
- Fix Modal when the Activity is paused or resumed (a0562c7) - @dmmiller
- Correctly cancel network calls in catalyst instance destroy (7914d33) - @andreicoman11
- Fix NPE in cancelling network calls (5de1151) - @andreicoman11
New features and enhancements
- Add
Image#getSize
for Android (c1558bc) - @cornedor - Move new bridge java stuff to OSS (3b3b46d) - @cjhopman
- Add support for delete animation in LayoutAnimation on Android (0fb5ccf) - @janicduplessis
- Make "Debug JS" dev menu option persist across app restarts on RN Android (60e0d2c) - @lebronJ
- Build new bridge with gradle (5e8f171) - @cjhopman
- Allow app/build.gradle to specify additional packager arguments (1f2027a) - @philikon
- Allow app/build.gradle to specify how node gets invoked for the packager (58fb91e) - @philikon
- Add progressListener for android when using FormData to upload files (e63ea3a) - @tantan
- Hook up Android intent to Linking.js #7079 (c36430a) - @rreusser
iOS
Bug fixes
- ActionSheetIOS - support share sheet on modals (4446e31) - @grabbou
- TabBarIOS itemPositioning - Fixes #4136 (a45d025) - @grabbou
- Added small decoded image cache to prevent images flashing when component is reloaded (c8f39c3) - @nicklockwood
- Reduce boxing overhead of arrays in uiBlockWithLayoutUpdateForRootView (fc14f85) - @nicklockwood
- Fix scrolling issue on iOS devices. (d31a54a) - @Andreyco
- Fix the Origin: header used in WebSocket requests. (03512fb) - @ewanmellor
- Changed RCTTextView to check for failed focus (7241347) - @nathanajah
- Recenter RCTScrollView when width or height are equal (5961764) - @devknoll
New features and enhancements
- Log image url when image size doesn't match. (eb69d03) - @cpunion
- Enable views to be nested within
<Text>
(486dbe4) - @rigdern - Enable ATS w/ localhost exception for generated iOS proj (0f57702) - @andrewsardone
- Add Shortcut "Double R" to Reload JS (2d32a6d) - @lebronJ
- Support HTTP headers for source prop on components (ee8496f) - @rigdern
- Promisify PushNotificationIOS requestPermission (f4dbf37) - @JAStanton