Stay informed
Subscribe to our newsletter if you'd like to stay informed about Shoutem Extensions and Shoutem UI Toolkit.
Buttons are additionally styled TouchableOpacity components.
Button
has no specific (custom) Props, however, it supports every prop that the standard React Native TouchableOpacity
component supports. For full list of available props, visit
React Native TouchableOpacity component documentation.
fontSize
for Text
component within Button
Border
color as defined in ThemeButton
and sets backgroundColor
to Clear
color as defined in ThemeButton
and applies a medium margin aroundLight
as defined in Theme, and background color to Darker
as defined in ThemeButton
stretches to full width of the containerIcon
and Text
components within Button
to 50%Icon
and Text
within Button
Icon
and Text
within Button
Button
is pressedStyle
prop that the standard React Native View
component supports<Button>
<Text>CHECK IN HERE</Text>
</Button>
<Button styleName="secondary">
<Text>CHECK IN HERE</Text>
</Button>
<Button>
<Icon name="add-event" />
<Text>ADD TO CALENDAR</Text>
</Button>
<Button styleName="secondary">
<Icon name="add-event" />
<Text>ADD TO CALENDAR</Text>
</Button>
<View styleName="horizontal">
<Button styleName="confirmation">
<Text>REMOVE</Text>
</Button>
<Button styleName="confirmation secondary">
<Text>UPDATE</Text>
</Button>
</View>
<Button styleName="full-width">
<Text>SEE ALL COMMENTS</Text>
</Button>
<Button styleName="clear">
<Icon name="add-to-favorites-full" />
</Button>
<Button styleName="stacked clear">
<Icon name="tweet" />
<Text>Text description</Text>
</Button>
<View styleName="horizontal flexible">
<Button styleName="full-width muted">
<Icon name="like" />
<Text>LIKE</Text>
</Button>
<Button styleName="full-width muted">
<Icon name="comment-full" />
<Text>COMMENT</Text>
</Button>
</View>
<View styleName="horizontal flexible">
<Button styleName="full-width">
<Icon name="like" />
<Text>LIKE</Text>
</Button>
<Button styleName="full-width">
<Icon name="comment-full" />
<Text>COMMENT</Text>
</Button>
</View>