rn-sliding-up-panel icon indicating copy to clipboard operation
rn-sliding-up-panel copied to clipboard

Expose more props to enhance effects?

Open rexlow opened this issue 8 years ago • 3 comments

Is there a chance to expose props like panResponder to allow more granular control over the momentum (bouncing) effect? Moreover, the bottom sheet does not seems to be able to snap back into its original place quickly if I want to close it.

rexlow avatar Jul 17 '17 13:07 rexlow

The best way I can ever think about is passing animation configs to transitionTo function. Something like:

this._panel.transitionTo(0, {duration: 160, easing: Easing.bounce})
// same configs with `Animated.timing`

octopitus avatar Jul 18 '17 09:07 octopitus

Additional 3rd param can be onComplete function.

octopitus avatar Jul 18 '17 09:07 octopitus

Hi, I actually to wan't bounce effect too but I don't really understand your saying :/ Can someone give me an example (just a little code), thanks you !

JeremyMeissner avatar Aug 16 '19 13:08 JeremyMeissner