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

Resolving values on Close #14

Closed
ashiquemohammed opened this issue May 29, 2019 · 1 comment
Closed

Resolving values on Close #14

ashiquemohammed opened this issue May 29, 2019 · 1 comment

Comments

@ashiquemohammed
Copy link

Whenever the bottom sheet closes , the onClose event is triggered . I am trying to resolve a value that I passed while closing to the onClose event .

How to ?

Or in a way

<RBSheet
onClose={(args) => {
console.log(args);
}}

// Inner component closed the bottom sheet with ref
/>

I am trying to get the args

@nysamnang
Copy link
Owner

nysamnang commented May 30, 2019

@32teeths

<RBSheet
  onClose={() => {
    console.log(your_args);
  }}

  // Inner component closed the bottom sheet with ref
/>

You don't need to put args inside (args) => {}. If you put like this it means you wish to get args from RBSheet not yours.

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

No branches or pull requests

2 participants