-
-
Notifications
You must be signed in to change notification settings - Fork 788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Dynamic sizing doesn't work when the inner content height is changed by animation in React Native New Architecture iOS #2051
Comments
Same issue here, happens on stepped component, where each step has different height |
@cheolhow by the way it's not the new architecture I think, if you downgrade to v4 it works. |
It is not clear whether “new architecture” has been applied in “expo snack”. However, in V5 before the "new architecture" (Expo 51), the code worked on Android and iOS. After applying "new architecture", it works on Android, but on iOS, there is a problem with height calculation when the height-changing animation implemented with "react-native-reanimated" is initially executed. I think that the change to “new architecture” caused a problem with dynamic calculations on iOS. |
I'm seeing similar behavior. It seems that when animating the height of items inside the sheet (e.g., original height to zero/hidden), the change is not recorded internally for the Bottom Sheet. This is causing issues especially with keyboard handling. For example, when hiding components within the sheet on input focus, the components hide, and the keyboard appears, but the Bottom Sheet seems to think the hidden components are still visible. This is causing the sheet to extend to the outermost bounds of the range (emulating the It would be helpful if there was a way to more directly control the sheet's positioning in these instances or otherwise inform the Bottom Sheet that the internal height has changed and to recalculate the snap points. I attempted to control this by passing a SharedValue of the |
Since React Native New Architecture, there is an issue where the It looks like we'll need to see how this issue is resolved in "react-native-reanimated" in the future, and also fix the behavior related to |
Version
v5
Reanimated Version
v3
Gesture Handler Version
v2
Platforms
iOS
What happened?
In React Native New Architecture iOS, Dynamic resizing does not work when inner content height changes by animation.
snapPoints
withenableDynamicSizing
does not work as expected.The
snapPoints
list doesn't seem to include dynamic content heights.On Android it works as expected.
Reproduction steps
<BottomSheetModal/>
withenableDynamicSizing: true
Reproduction sample
https://snack.expo.dev/@cheolho/bottom-sheet---issue-reproduction-template
Relevant log output
No response
The text was updated successfully, but these errors were encountered: