Pressable

Pressable is a versatile interactive component that detects press behaviors, allowing you to execute specific logic in response to user interactions.

Preview

Pressable.jpg

Code example

render('Checkout::Dynamic::Render', () => {
return <Pressable onPress={() => console.log('onPress event')}>Pay now</Pressable>;
});

PressableProps

tip

Optional properties are marked with a ?. Properties without a ? are required.

children

React.ReactNode

Nested content inside the component.


onPress?

() => void

Callback triggered on press.


Was this article helpful to you?