Skip to content

Drag Up #17

@wecodexoficial

Description

@wecodexoficial

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions