Repository navigation
Release 4.1.1
π New features
- iOS: Added Swift Package Manager support for apps using React Native's SwiftPM setup (
npx react-native spm, React Native 0.88 and later). CocoaPods is unchanged. (#1013 by @VladyslavMartynov10 and @lodev09)
π Bug fixes
- iOS: Navigating to a modal screen while the sheet is dismissing now opens the modal once the sheet is gone. With the patched
react-native-screens, the modal never opened and no other modal could open until the app restarted. (#1019 by @JacquesLeupin) - iOS: A sheet navigator sheet opened while the base screen shows a
fullScreenModalnow presents over the modal. It used to never appear, itsdismiss()rejected with "No sheet found", and the half-open route kept the modal from closing through the navigator. A sheet rendered beside the navigation tree, such as a root-level named sheet, now presents over afullScreenModaltoo. (#1021 by @maxlapides) - iOS: The app no longer crashes with "Collection was mutated while being enumerated" when a sheet's
footermounts or unmounts while the keyboard is moving, such as a footer with a search input that is focused as soon as it appears. (#1030 by @lodev09) - Android: A sheet whose keyboard starts rising as the present slide ends, such as one that focuses an input around
onWillPresent, now finishes presenting. It used to never fireonDidPresentor resolvepresent(), and kept swallowing taps. (#1012 by @JacquesLeupin) - Android: When a sheet presented over another sheet changes its content size right before it dismisses, the sheet behind it now slides back instead of staying pushed down and not draggable. (#1015 by @idlework)
- Android: The keyboard no longer counts against
maxContentHeight, as on iOS. A sheet now rises above the keyboard instead of stopping atmaxContentHeightwith the keyboard covering the bottom of its content, such as a button below a text input. A sheet already atmaxContentHeightnow rises with the keyboard too, instead of staying put. (#1017 by @wildseansy) - Android: A sheet whose
detents,maxContentHeight,placement, ormaxContentWidthchange while it presents now uses the new values. It used to keep the old ones, such as settling at the old detents with empty space below its content. (#1022 by @Kijomimi and @lodev09) - Android: Presenting a sheet with the keyboard up from inside a react-native-screens form sheet no longer hangs. The present used to wait for the keyboard to finish hiding on a view the form sheet stops insets animations from reaching, so it never ran and the screen ignored every tap until a back press. (#1023 by @jesseinkfnd)
- Android: A sheet with
grabber={false}whosescrollableRefscroll view mounts after the sheet presents, such as content that shows a loader first, now hands drags to that scroll view. A short pull withdismissThreshold="short"used to spring back instead of closing the sheet, and dragging down a scrolled list moved the sheet instead of scrolling the list back up. (#1024 by @isaacrowntree) - Android: With three or more sheets stacked, the sheets under the top sheet now stay behind it when the app returns from the background or a prop such as
backgroundColorchanges on one of them. A sheet two or more levels under the top sheet used to come back above it. (#1029 by @lodev09)
π‘ Others
- The Expo example in
example/exponow runs SDK 58, and the SDK 57 example moves toexample/expo-57(yarn expo-57). The bare example is upgraded to React Native 0.88. (#1016 by @lodev09)
New Contributors
- @JacquesLeupin made their first contribution in #1012
- @Kijomimi made their first contribution in #1022
- @jesseinkfnd made their first contribution in #1023
Full Changelog: v4.1.0...v4.1.1