Detects and triggers touch events for swiping such as onSwipeLeft, onSwipeDown, etc. with ReactJS