Pressable

React Native 6 min min read Updated: Jul 26, 2026 Beginner
Pressable
Beginner Topic 10 of 30

Pressable

Pressable is the modern, recommended component in React Native for handling touch interactions, offering more flexibility and control compared to older touchable components.

Basic Usage

javascript import { Pressable, Text } from 'react-native'; console.log('Pressed')}> Tap Me

Dynamic Styling Based on Press State

Pressable accepts a function as its style prop, giving access to the current pressed state to apply dynamic visual feedback.

javascript ({ opacity: pressed ? 0.6 : 1, backgroundColor: pressed ? '#ddd' : '#eee', padding: 12, })} onPress={handlePress} > Press Me

Handling Multiple Interaction Types

Pressable supports onPress, onLongPress, onPressIn, and onPressOut, giving developers precise control over different stages of a touch interaction.

javascript console.log('Press started')} onPressOut={() => console.log('Press ended')} onLongPress={() => console.log('Long pressed')} > Interactive Button

Adjusting Hit Slop

The hitSlop prop expands the touchable area beyond the visible bounds of the component, improving usability for small buttons or icons.

javascript Small Icon Button

Why Pressable is Preferred

Pressable was introduced to unify the behavior of TouchableOpacity, TouchableHighlight, and other older touchable components into a single, more flexible and future-proof API.

Conclusion

Pressable is now the recommended way to handle touch interactions in React Native due to its flexibility, dynamic styling capabilities, and fine-grained control over press states.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators