TouchableOpacity
A wrapper for TouchableOpacity component. Support onPress, throttling and activeBackgroundColor
Extends: TouchableOpacity
(meaning you can pass the super component's props as well).
(meaning you can pass the super component's props as well).
Supported modifiers: margins, paddings, alignments, background, borderRadius.
Read more about modifiers here.
PROPS
name | description | type | default |
---|---|---|---|
backgroundColor | background color for TouchableOpacity | string | |
throttleTime | throttle time in MS for onPress callback | number | |
throttleOptions | throttle options | shape | |
activeBackgroundColor | Apply background color on TouchableOpacity when active (press is on) | string |
LIVE EXAMPLE
CODE SAMPLE
See example here.