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

Fix example code snippet mistake #12

Merged
merged 7 commits into from
Jan 15, 2024
Merged

Fix example code snippet mistake #12

merged 7 commits into from
Jan 15, 2024

Conversation

stanleyugwu
Copy link
Owner

No description provided.

Import Intellisense for `<BottomSheet/>`  uses deep component path `@devvie/bottom-sheet/lib/typescript/components/bottomSheet` instead of `@devvie/bottom-sheet`
passing an array to `style` prop causes typescript to complain because the `style` prop wasn't typed correctly.

This commit fixes that.
…kPress` prop

When `android_closeOnBackPress` is true, all pre-registered back press event listeners in the app is prevented from being called and `closeSheet` function is constantly closed even when sheet is closed.

When it's false, it doesn't prevent sheet from being closed by back press.

Fixes #9
…andle component

setting padding properties (`padding`, `paddingLeft`, `paddingVetical`, etc) in the `style` prop causes the drag handle to move position in response to the paddings.

This commit fixes that and also fixes a critical issue where padding styles also caused the sheet to have extruded height making it visible even when closed
@stanleyugwu stanleyugwu merged commit 2901f2b into main Jan 15, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant