Example
Props
Called when a single tap gesture is detected.
Called when a touch is engaged before
onPress.Called when a touch is released before
onPress.Called when a long-tap gesture is detected.
Called when the press location moves.
Called when the hover is activated to provide visual feedback.
Called when the hover is deactivated to undo visual feedback.
Whether the press behavior is disabled.
Additional distance outside of this view in which a press is detected.
Additional distance outside of this view in which a touch is considered a press before
onPressOut is triggered.Duration (in milliseconds) from
onPressIn before onLongPress is called.Duration to wait after hover in before calling
onHoverIn.Duration to wait after hover out before calling
onHoverOut.Either view styles or a function that receives a boolean reflecting whether the component is currently pressed and returns view styles.
Either children or a render prop that receives a boolean reflecting whether the component is currently pressed.
Whether a press gesture can be interrupted by a parent gesture such as a scroll event.
If true, doesn’t play system sound on touch.Platform: Android
Enables the Android ripple effect and configures its color.Platform: Android
Identifier used to find this view in tests.
Duration to wait after press down before calling
onPressIn.