Jumpy behaviour when setting sheetInitialDetentIndex to other then 0. #2543
Labels
Platform: iOS
This issue is specific to iOS
Repro provided
A reproduction with a snack or repo is provided
Description
When im using sheetInitialDetentIndex and set it to another value then 1, the formSheet is behave jumpy, it hard to stick to the anchor.
Here how it is
https://github.com/user-attachments/assets/c79b61cd-22e3-406d-8139-e485fa01f18e
`
<RootStack.Screen
name="Favorites"
component={Favorites}
options={{
presentation: 'formSheet',
headerShown: true,
title: '',
sheetAllowedDetents: [0.2, 0.5, 0.99],
gestureEnabled: true,
sheetInitialDetentIndex: 2,
sheetLargestUndimmedDetentIndex: 'last',
sheetCornerRadius: 24,
`
Expected behaviour:
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2024-11-27.at.12.04.21.mp4
`
<RootStack.Screen
name="Favorites"
component={Favorites}
options={{
presentation: 'formSheet',
headerShown: true,
title: '',
sheetAllowedDetents: [0.2, 0.5, 0.99],
gestureEnabled: true,
sheetInitialDetentIndex: 0,
sheetLargestUndimmedDetentIndex: 'last',
sheetCornerRadius: 24,
`
Steps to reproduce
Snack or a link to a repository
snack
Screens version
4.0.0
React Native version
0.75.0
Platforms
iOS
JavaScript runtime
None
Workflow
Expo bare workflow
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
Real device
Device model
iPhone 14 Pro
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: