octopitus / rn-sliding-up-panel

Draggable sliding up panel implemented in React Native https://octopitus.github.io/rn-sliding-up-panel/
MIT License
928 stars 157 forks source link

Velocity parameter from show() method does not work #161

Open OrkanAutomacao opened 4 years ago

OrkanAutomacao commented 4 years ago

Issue Description

When passing velocity value to show method it goes to position without doing any animation.

Steps to Reproduce / Code Snippets / Screenshots

panelRef.current.show({
            toValue: windowHeight,
            velocity: 0.1
        })

Environment

asdolo commented 4 years ago

You have to pass a negative velocity, because the drawer is going to the top.