First of all, thank you for this awesome library!
We're using this at the company I'm working for, and we're presenting the gallery using a modal presentation from react-native-navigation, which animates presentation from bottom to top, and dismissal from top to bottom.
We want to be able to dismiss the gallery by swiping down, and do that by invoking navigation.goBack() from onSwipeToClose. This works great since the modal itself animates on the same direction while closing, but looks very weird when dismissing it by swiping up (photo goes up while modal goes down).
This PR introduces a disableSwipeUp prop, that disables swiping up when there's no scale.
First of all, thank you for this awesome library! We're using this at the company I'm working for, and we're presenting the gallery using a modal presentation from
react-native-navigation
, which animates presentation from bottom to top, and dismissal from top to bottom.We want to be able to dismiss the gallery by swiping down, and do that by invoking
navigation.goBack()
fromonSwipeToClose
. This works great since the modal itself animates on the same direction while closing, but looks very weird when dismissing it by swiping up (photo goes up while modal goes down).This PR introduces a
disableSwipeUp
prop, that disables swiping up when there's no scale.