prscX / react-native-bottom-action-sheet

React Native: Native Bottom Action Sheet
Apache License 2.0
634 stars 48 forks source link

Updating state when the bottom sheet is dismissed #29

Closed naddeoa closed 4 years ago

naddeoa commented 5 years ago

Looking over the docs, I can't see how to tell when the bottom sheet is dismissed. I'm trying to take the React approach where the visibility state is managed in my component state, but I'm not sure how I'm supposed to update that visibility state to false when the user clicks the background to dismiss the bottom sheet without making a selection, and onSelection doesn't look like it gets called in that case.

How can I update my component state when the bottom sheet is dismissed?

mtzfactory commented 5 years ago

Yeah, that would be great...

mtzfactory commented 5 years ago

Hi,

I've just added a PR solving this issue.

By!

prscX commented 4 years ago

Thanks @mtzfactory for sharing the PR and Effort.

Closing the issue since it was fixed in shared PR.

Thanks </ Pranav >