Skip to content
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

feat: added default dynamic sizing (#1513)(with @Eli-Nathan & @ororsatti) #1683

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

gorhom
Copy link
Owner

@gorhom gorhom commented Jan 3, 2024

Closes #658, closes #32, closes #1363

Motivation

This PR is a replacement for #1510 by @Eli-Nathan & #1402 by @ororsatti, where the implementation been shifted into the core library allowing the removal of the useBottomSheetDynamicSnapPoints hook.

Users will be able to enable dynamic sizing by default. And enable setting a limit for content height by providing a max value with maxDynamicContentSize.

Testing

  • tested with Bottom Sheet View
  • tested with Bottom Sheet Scrollables
yarn add ssh://git@github.com:gorhom/react-native-bottom-sheet#feat/default-dynamic-sizing

@gorhom gorhom added the v5 label Jan 3, 2024
@gorhom gorhom merged commit 8017fb6 into v5 Jan 3, 2024
1 check passed
@gorhom gorhom deleted the feat/default-dynamic-sizing branch January 3, 2024 18:22
yayvery added a commit to discord/react-native-bottom-sheet that referenced this pull request Mar 14, 2024
…lt dynamic sizing

not sure why provided content + handle height was removed in gorhom#1683, it significantly increases the mount cost because it now requires a full off-screen render pass of the content and handle components before the sheet can be displayed
yayvery added a commit to discord/react-native-bottom-sheet that referenced this pull request Mar 14, 2024
…lt dynamic sizing

not sure why provided content + handle height was removed in gorhom#1683, it significantly increases the mount cost because it now requires a full off-screen render pass of the content and handle components before the sheet can be displayed
yayvery added a commit to discord/react-native-bottom-sheet that referenced this pull request Mar 14, 2024
…lt dynamic sizing

not sure why provided content + handle height was removed in gorhom#1683, it significantly increases the mount cost because it now requires a full off-screen render pass of the content and handle components before the sheet can be displayed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant