-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Backdrop interaction required #198
Comments
Not sure about adjusting the draggable range based on the results returned from a fetch. Do you mean, if the fetch returned one result then your panel would look like this:
And if your fetch returned double the results your panel would look like
If that is what you mean, you'll be able to do it with this library for sure, you can dynamically adjust the panel height and dynamically lock the panel (i.e. prevent dragging). I think that will provide what you want. |
I'm kinda having the same problem...new to React Native so I might be missing something, but how do you make it so that the backdrop doesn't cover the map? Even if transparent, I cannot click through it |
I found a solution... passing in the prop I needed a solution that did not display over every view, but rather a panel that acted as a subview (so that more than one could display at a time, theoretically). For this functionality I used Hope that helps! Also, thank you @kathawala! That works--if the fetch results in a view that exceeds the size of the page, though, I would be interested in scrolling through them. I would ideally be able to close the window by scrolling down upon reaching the top of the results. |
@jeremyben-meir you can do the same thing as the example in that component with this one, I myself have done it in several projects. I also wrote a tutorial on how to do it with this component. Glad you found something that works though! EDIT: actually looking at what you wrote I know what you're trying to do. I've done exactly the same thing myself, with a scrollview inside the panel and closing the panel when you drag from the top of the scrollview. I wrote about it here: https://www.farhansayshi.com/post/sliding-up-panel-in-react-native/ Cheers! |
Does anybody have any good alternatives or recommendations, given the following requirement:
I want to be able to interact with a map, in the backdrop of a panel that slides up. The panel that slides up should then adjust its draggable range based on the number of results returned from a fetch.
Thank you.
The text was updated successfully, but these errors were encountered: