Skip to main content
Version: 5.0

Loading

Props#

loading#

Displays an ActivityIndicator when the items aren't loaded yet.

const [loading, setLoading] = useState(false);
<DropDownPicker
loading={loading}
...
/>
TypeDefault
boolfalse

ActivityIndicatorComponent#

Customizes the ActivityIndicator.

ActivityIndicatorComponent={({color, size}) => (
<ActivityIndicator color={color} size={size} />
)}
Type
function

activityIndicatorColor#

Changes the default color of the ActivityIndicator.

activityIndicatorColor="red"
TypeDefault
stringgrey

activityIndicatorSize#

Changes the default size of the ActivityIndicator.

activityIndicatorSize={30}
TypeDefault
number30