Buttons
The Gesture Handler library offers native components that function as buttons, serving as alternatives to TouchableHighlight or TouchableOpacity from the core React Native framework. These buttons process touch recognition natively, which ensures a deterministic response. This capability significantly enhances performance; for example, it allows for immediate ripple effects on Android, unlike TouchableNativeFeedback, which requires a touch event roundtrip to JavaScript that can cause delays, especially noticeable on older devices. Additionally, these components handle default platform interactions natively, particularly in scrollable containers where interactions are smartly delayed to prevent unintended highlighting during a fling.
createNativeWrapper
createNativeWrapper is a function that lets you wrap components which are not provided by Gesture Handler with a Native gesture, allowing them to participate in the gesture recognition process.
Pressable
This component is a drop-in replacement for the Pressable component.
Reanimated Drawer Layout
This component acts as a cross-platform replacement for React Native's DrawerLayoutAndroid component, written using Reanimated. For detailed information on standard parameters, please refer to the React Native documentation.
Reanimated Swipeable
This component is a drop-in replacement for the Swipeable component, rewritten using Reanimated.
Touchables
Touchables will be removed in the future version of Gesture Handler. Use Pressable instead.