sheetAllowedDetents: "fitToContents"
doesn't seem to work?
#2521
Labels
sheetAllowedDetents: "fitToContents"
doesn't seem to work?
#2521
Description
Thanks for an awesome library!
When setting
sheetAllowedDetents: "fitToContents"
orsheetAllowedDetents: [-1]
it seems to have no effect? I've tried adding this config to the "FormSheet" screen in theStackPresentation
example in the example project. I've also removed everything inside theFormScreen
but still the sheet detents is not equal to the content height. I thought we could expect the formsheet to act similar to when settingsize={["auto]}
in https://github.com/lodev09/react-native-true-sheet Is that not the case?Steps to reproduce
sheetAllowedDetents: "fitToContents"
in the options here:react-native-screens/apps/src/screens/StackPresentation.tsx
Line 180 in 5fa039e
Snack or a link to a repository
https://github.com/software-mansion/react-native-screens/blob/main/apps/src/screens/StackPresentation.tsx#L180
Screens version
4.2.0
React Native version
0.76.0
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
iOS simulator
Device model
iPhone 16 Pro iOS 18.1
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: