Skip to main content

Overview

The ActivityIndicator component displays a circular loading indicator. 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-bg-blue-500").

Uniwind Bindings

className
string
Maps to the style prop. Use any Tailwind utility classes.
colorClassName
string
Maps to the color prop. Requires accent- prefix for color values.

Usage Example

import { ActivityIndicator, View } from 'react-native'

<ActivityIndicator
    className="m-4"
    size="large"
    colorClassName="accent-bg-blue-500 dark:accent-bg-blue-400"
/>
I