TouchableHighlight
TouchableHighlight is a component in React Native that provides pressable behavior with visual feedback. It wraps a single child element and responds to touch by showing a colored underlay behind the child, signaling activation. The underlayColor prop defines the color used for this feedback. When the user presses, the underlay appears; when the press is released, it disappears.
The component supports common touch events such as onPress, onPressIn, onPressOut, and onLongPress, along with optional
Usage considerations include that TouchableHighlight is suitable for simple, visible feedback on both iOS and Android.
Compared with other touchables, TouchableHighlight focuses on the underlay-based highlight effect, whereas newer patterns like Pressable