PressableAnimated
@shopify/shop-minis-platform-sdk / components/PressableAnimated
PressableAnimatedProps
Properties
bounceOnPress?
optional
bounceOnPress:boolean
If true, the button will have the bounce animation triggered when click
children
children:
ReactNode
The element we want to animate.
disabled?
optional
disabled:boolean
If true, the button will not be clickable and disabled styles will be applied
hapticOnPress?
optional
hapticOnPress:boolean
If true, the button will have the hapitc triggered when click
isListItem?
optional
isListItem:boolean
Adds a delay to the onPress callback to avoid triggering while scrolling if part of a list
onPress()
onPress: (
children
) =>void
Optional function to be called when toggle is pressed.
Parameters
Parameter | Type |
---|---|
children | ReactNode |
Returns
void
opacityOnPress?
optional
opacityOnPress:boolean
If true, the button will trigger the opacity when clicking
PressableAnimated()
PressableAnimated(
__namedParameters
):Element
Parameters
Parameter | Type |
---|---|
__namedParameters | PressableProps & RefAttributes \<View > & PressableAnimatedProps |
Returns
Element