octopitus / rn-sliding-up-panel

Draggable sliding up panel implemented in React Native https://octopitus.github.io/rn-sliding-up-panel/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Velocity parameter from show() method does not work

OrkanAutomacao opened this issue · comments

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

  • Version: 2.4.0
  • React Native version: 0.61.5
  • Platform(s) (iOS, Android, or both?): Android
  • Device info (Simulator/Device? OS version? Debug/Release?): Device, Debug

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