Documentation Index
Fetch the complete documentation index at: https://docs.uniwind.dev/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheTouchableOpacity component wraps views to make them respond properly to touches with opacity feedback. Uniwind provides className prop support for styling this component.
Styling Convention
For
style props: Use regular Tailwind classes directly (e.g., className="p-4").For non-style props (like color): Use the accent- prefix (e.g., colorClassName="accent-blue-500").Uniwind Bindings
Maps to the
style prop. Use any Tailwind utility classes.State Selectors
TouchableOpacity supportsactive:, disabled:, and focus: state selectors:
| Selector | Trigger |
|---|---|
active: | When the component is being pressed |
disabled: | When the disabled prop is true |
focus: | When the component has focus (especially useful for TV navigation) |