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

Close from a child component #73

Closed
nipunravisara opened this issue Apr 4, 2020 · 2 comments
Closed

Close from a child component #73

nipunravisara opened this issue Apr 4, 2020 · 2 comments

Comments

@nipunravisara
Copy link

I'm using a different form component as a content of react-native-raw-bottom-sheet. I'm trying to close the bottom-sheet from that form component submit button. Any possible way to do that ?

@nikndr
Copy link

nikndr commented Jun 23, 2020

@RavisaraDev You just need to forward ref to that child component. Check out these docs https://reactjs.org/docs/forwarding-refs.html

@will-districtnerds
Copy link

I'm not very experienced with forward ref. Is there an example of how one would forward ref RBSheet to a child component?

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

4 participants