v0.36.0
Thanks to 67 contributors who put 139 commits into this release!
Breaking changes
General
-
Default scrollview to flexShrink to allow views below it (c43a3f5) - @emilsjolander
-
Fix unconstraint sizing in main axis (0a9b6be) - @emilsjolander
Most of your layouts will continue to function as before however some of them might not. Typically this is due to having a
flex: 1
style where it is currently a no-op due to being measured with an undefined size but after this change it may collapse your component to take zero size due to the implicitflexBasis: 0
now being correctly treated. Removing the badflex: 1
style or changing it toflexGrow: 1
should solve most if not all layout issues your see after this change.
Android
- Fix modal resizing on keyboard show (404b7cc) - @andreicoman11
General
Bugfixes
- Add null check for keyboardFrame variable in KeyboardAvoidingView component (770091f) - @Isakdl
- XMLHttpRequest.getAllResponseHeaders should use CRLF (24c72f5) - @arv
- Emit
willfocus
from immediatelyResetRouteStack (95b1fc4) - @dzautner - Dump invalid json when call Value::fromJSON failed (9a7e4b4) - @leeight
- Fix no "window" in react native (1941450) - @sunnylqm
New features and enhancements
- Adds
Keyboard.dismiss()
function and document Keyboard (542ab86) - @GantMan - Introduced AnimatedDivision (0a0dd30) - @fkgozali
Android
Bugfixes
- Fix Modal size on Android tablet (12a97e1) - @davepack
- Fix inspector on top of Modal (05de4db) - @andreicoman11
- Fix ReactSwipeRefreshLayout (30989dd) - @andreicoman11
- Fix webview crash when trying to display local html files (a2aab62) - @andy9775
- Allow code to check android permissions when run from a Service as well as Activity (1502e66) - @mikelambert
- Show touchable feedback for short touches (8915507) - @foghina
- Prevent app from crashing when getCurrentActivity is null (486f3b) - @cmcewen
New features and enhancements
- Add ability to lazy load Native Java Modules (797ca6c) - @AaaChiuuu
- Android: add support for headless js tasks (3080b8d) - @foghina
- Add flag to enable lazy view managers (1296cb2) - @AaaChiuuu
- StatusBar: barStyle support for Android (API 23+) (c4ac8b3) - @alwx
- Android: enable foreground ripple (6d175f2) - @foghina
iOS
Bugfixes
- Find correct local IP address when running on iOS device (8adf78f) - @guilhermebruzzi
- Fix Modal to handle in-call status bar (0ce2bbd) - @mmmulani
- Fix ScrollView's snap index when scrolling forward and user taps the screen again while still scrolling (72e203b) - @anttimo
- Fixed crash when setting custom shadow props to null (cfae3e3) - @majak
- Sync support for new ios bridge (97e3c09) - @mhorowitz
- Cancel network requests from the correct queue (64dd140) - @javache
New features and enhancements
- Add support for new ios bridge to FBReactBridgeJSExecutor (af5c8a8) - @mhorowitz
- Add destination to e2e xcode build (f0a3a25)
- Apple TV support 1: existing Objective C code should compile for tvOS (d368ebf) - @dlowder-salesforce
- Apple TV support 2: Xcode projects and CI (scripts/objc-test.sh) (8622998) - @dlowder-salesforce
Windows
Bugfixes
- Fix ENOENT when react-native init with --verbose on Windows (2289909) - @flyskywhy