Drag Up
wecodexoficial opened this issue · 1 comments
Hello, thank you very much for the contribution of the library,
It has worked for me
I have a question, is it possible to drag up without having to create a button. Currently, I am using a ScrollControl as a controller but it does not work perfectly. I would like to know if there is a way similar to drag drown.
This is my relationship, but it's not that comfortable,
On the other hand, I would also like to know if, instead of closing the modal, there could be a minimum height when doing a drag down
const handleContentScroll = (event) => {
const contentOffsetY = event.nativeEvent.contentOffset.y;
if(contentOffsetY>120) {
setBottomSheetHeight({height: 900, scroll: 600,isOpen:true})
} else if(contentOffsetY ===0) {
setBottomSheetHeight({height:500,scroll:310,isOpen:false})
}
};
<ScrollView style={{height:bottomSheetHeight.scroll}} onScroll={handleContentScroll}>
</ScrollView>
Regards and Thanks you
This feature is planned and is in the roadmap of the project but not currently implemented.
Currently, you can wrap the children
in a scroll view and change the height
of the sheet on scroll
.
This feature will be prioritized and be added soon, thanks for pointing it out.