Skip to main content

Overview

The RefreshControl component provides pull-to-refresh functionality for ScrollView and FlatList. 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 tintColor): Use the accent- prefix (e.g., tintColorClassName="accent-blue-500").
Since 1.6.2: Passing a className without the accent- prefix to a color prop will log a warning to the development console.

Uniwind Bindings

string
Maps to the style prop. Use any Tailwind utility classes.
string
Maps to the colors prop (Android only). The resolved color is passed as a single-item array. Requires accent- prefix for color values.
string
Maps to the tintColor prop (iOS only). Requires accent- prefix for color values.
string
Maps to the titleColor prop (iOS only). Requires accent- prefix for color values.
string
Maps to the progressBackgroundColor prop (Android only). Requires accent- prefix for color values.

Usage Example