react-native-raw-bottom-sheet icon indicating copy to clipboard operation
react-native-raw-bottom-sheet copied to clipboard

Close from a child component

Open nipunravisara opened this issue 6 years ago • 2 comments

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 ?

nipunravisara avatar Apr 04 '20 14:04 nipunravisara

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

nikndr avatar Jun 23 '20 17:06 nikndr

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

will-districtnerds avatar Aug 11 '20 21:08 will-districtnerds