onSwipe, onSwipeUp, onSwipeDown, onSwipeLeft, and onSwipeRight are all optional props for ReactNativeZoomableViewWithGestures but this line returns false if any one of these props is not provided. Since these props are optional would it make sense to not require them for _couldCallSwipeEvent() to return true by using || instead of &&
onSwipe
,onSwipeUp
,onSwipeDown
,onSwipeLeft
, andonSwipeRight
are all optional props forReactNativeZoomableViewWithGestures
but this line returns false if any one of these props is not provided. Since these props are optional would it make sense to not require them for_couldCallSwipeEvent()
to return true by using||
instead of&&