Stay informed
Subscribe to our newsletter if you'd like to stay informed about Shoutem Extensions and Shoutem UI Toolkit.
TouchableOpacity is a React Native’s TouchableOpacity
with additional styling applied through Theme.
Basically, TouchableOpacity
is React-Native’s component that responds to touches. Once the component is pressed, the opacity of the component within TouchableOpacity
is decreased, dimming it.
Style
prop that the standard React Native TouchableOpacity
component supportsTouchableOpacity
has no specific style names.
TouchableOpacity
has the same Style props like React Native’s TouchableOpacity
component has (activeOpacity
)activeOpacity
can also be set through Theme, and it defaults to 0.8.<TouchableOpacity style="...">
{...}
</TouchableOpacity>