octopitus / rn-sliding-up-panel

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

Add onPositionChange() or onBackDropPress() Method #138

Open Aiiros opened 5 years ago

Aiiros commented 5 years ago

Issue Description

This is a feature request is directly related to https://github.com/octopitus/rn-sliding-up-panel/issues/96

When user taps on the backDrop, the slider is closed but no methods are triggered. There is a cumbersome workaround: https://github.com/octopitus/rn-sliding-up-panel/issues/96#issuecomment-468992157, but i think this should be a feature


Environment

Edit: Duplicate of #127

vjsingh commented 5 years ago

Seconded. Would be great if there was a callback whenever the background changed to a collapsed or open state.