Button

Props#

color#

A color of the button. The default value is primary.

TypeRequired
enum('black', 'danger', 'dark', 'disabled', 'facebook', 'google', 'info', 'light', 'primary', 'success', 'twitter', 'warning', 'white')No

iconProps#

Icon props. Check Icon documentation.

TypeRequired
objectNo

isDisabled#

If true, the button is not pressable and a disabled style is applied. The default value is false.

TypeRequired
stringNo

isLoading#

If true, a loading indicator is shown instead of a text. The default value is false.

TypeRequired
stringNo

linearGradient#

A linear gradient of the button.

TypeRequired
enum('danger', 'info', 'primary', 'success', 'warning')No

linearGradientProps#

LinearGradient props. Check LinearGradient documentation.

TypeRequired
objectNo

onPress#

Called when a single tap gesture is detected.

TypeRequired
functionYes

scalableProps#

Scalable props. Check Scalable documentation.

TypeRequired
objectNo

text#

A text of the button.

TypeRequired
stringYes

textProps#

Text props. Check Text documentation.

TypeRequired
objectNo