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

It would be great if you provide currentState and/or currentSnapPoint in the bottomsheet ref #1942

Closed
abappi19 opened this issue Sep 18, 2024 · 2 comments
Labels
enhancement New feature or request no-issue-activity

Comments

@abappi19
Copy link

Feature Request

It would be great if you provide currentState and/or currentSnapPoint in the bottomsheet ref

Why it is needed

It will reduce boilerplate code and sometime we get sheet hidden/ expanded because of keyboard event which doesn't let us know what the current state of the sheet is

Possible implementation

just add another value to ref and update whenever get changed

Code sample

if(ref.isExpanded || ref.currentIndex === 2){
    //sheet is expanded. hide it.
    ref.hide();
}
@abappi19 abappi19 added the enhancement New feature or request label Sep 18, 2024
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

Copy link

This issue was closed because it has been stalled for 5 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request no-issue-activity
Projects
None yet
Development

No branches or pull requests

1 participant