Minor release adding support for formSheet
+ ScrollView
+ sticky header layout on iOS (requires specific view hierarchy to work, see: #2747). The release includes also series of important fixes.
There are a lot of big internal changes in this release - we kindly ask you to report any bug issues and especially regressions we didn't catch.
Cheers!
What's Changed
⚠️ Important
Please note that this change only aligns the library with the behaviour of min. supported react-native
version, which is 0.76 (old arch) and 0.77 (new arch). This should not affect your apps unless you're using older react-native
version + custom patches.
🟢 Improvements
🐞 Bug fixes
- fix(Android,Fabric): prevent header subviews from disappearing after hot-reload by @kkafar in #2807
- fix(Android,Fabric): prevent Yoga from stretch-fitting height of header subview by @kkafar in #2811
- fix(Android,Fabric): prevent header subview disappearance when using
setOptions
by @kkafar in #2812 - fix(Android): pressables under sheets dimming view intercept gesture events by @kkafar in #2740
- fix(Android): missing content when using flex for formsheet contents by @kkafar in #2748
- fix(Android): prevent crash by properly managing lifecycle of the dimming view by @kkafar in #2750
- fix(Android): findTitleTextViewInToolbar couldn't find the correct view in certain cases by @herlihalim in #2757
- fix(Android,native-stack): fix check for
sheetAllowedDetents
value & apply appropriate styles by @kkafar in #2762 - fix(Android):
formSheet
not visible when going back frompush
in parent stack by @kkafar in #2767 - fix: FullWindowOverlay not working with dynamic frameworks by @war-in in #2769
- fix: update workaround preventing React Native from hiding frozen screens to work with RN 0.78 by @kligarski in #2778
- fix(Android): adapt header insets when interface orientation changes by @kkafar in #2756
- fix(Android): fix drawing order when dismissing multiple stacked sheets by @kkafar in #2771
- fix(Android,Paper): header config blocks gestures close to the top of the screen by @kkafar in #2781
- fix(Android): keep
formSheet
selected detent index after fragment reattachment by @kkafar in #2782 - fix(Android,Fabric): pressables losing focus on screens with
formSheet
presentation by @kkafar in #2788 - fix(Android):
formSheet
withfitToContents
does not have correct height after goBack by @kkafar in #2789 - fix(Android): implement ReactPointerEventsView to prevent header config from intercepting touches by @kkafar in #2796
- fix(iOS): use prefersPageSizing for modal on iOS 18.0+ by @kligarski in #2797
- fix(Android): fix backward compat with K1 compiler by @kligarski in #2808
🔢 Misc
- chore: add test examples do example app by @kkafar in #2735
- fix(TVOS): update dependencies to fix TVOSExample by @kligarski in #2751
- refactor(Android): kotlinize
ScreenStack.onUpdate
method by @kkafar in #2763 - chore(examples): adjust metro config to allow for easier modify-test loop with react-navigation submodule by @kkafar in #2765
- chore(Android): remove unused NativeDismissalObserver interface by @kkafar in #2768
- chore: remove unnecessary enableFreeze from Example.tsx by @kligarski in #2779
- chore(CI): install reanimated 3.17.1 in
Example
by @kkafar in #2780 - refactor(Android): rename
notifyChildUpdated
->onChildUpdated
by @kkafar in #2783 - chore(CI): run e2e tests on Fabric by @kkafar in #2734
- fix(CI): add missing AVD dependency to Paper Android e2e workflow by @kligarski in #2786
- fix(CI): change order of events in Fabric iOS events e2e test by @kligarski in #2785
- refactor(iOS): cleanup no. 1 in
RNSScreenStackHeaderConfig.updateViewController:withConfig:animated:
by @kkafar in #2798
New Contributors
- @herlihalim made their first contribution in #2757
- @war-in made their first contribution in #2769
Full Changelog: 4.9.1...4.10.0