Prop-driven behavior #1171
bombillazo
started this conversation in
General
Replies: 1 comment
-
ping @gorhom, implementing this manually is a huge pain :( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, is there any plans or way to control the BottomSheet component from a parent via props? Trying to use imperative functions ala class components in React Native functional components to open, close, snap to location, etc feels like an anti-pattern and breaks the convention of most of our internal component libraries. Beyond that our bottom sheet is hard to control and many times ends up in intermediate states that make it unusable until the app is refreshed.
Having the BottomSheet controls abstracted and the component takes care of the state given the props is a much better way to use the component. Just wanted to know if I was missing something or at least guidance on how to use the component properly without relying on
useEffect
hooks to monitor and sync the component open/close/snapping states. Thanks!Beta Was this translation helpful? Give feedback.
All reactions