Stay informed
Subscribe to our newsletter if you'd like to stay informed about Shoutem Extensions and Shoutem UI Toolkit.
Dividers are components used to add space or any other separator between other components.
Divider
has no specific (custom) Props, however, it supports every prop that the standard React Native View
component supports. For full list of available props, visit
React Native View component documentation.
Divider
(thin line), instead of standard (rectangle) Divider
line
style name, and sets the width to 55 pxline
style name, and centers the line within parent container<Divider />
<Divider styleName="line" />
Section dividers are usually used in lists to separate groups of similar list items, for example to group contacts by the first letter of their name. ListView will automatically style all dividers added to it.
<Divider styleName="section-header" />
<Divider styleName="section-header">
<Caption>INFORMATION</Caption>
</Divider>
<Divider styleName="section-header">
<Caption>PRODUCT NAME</Caption>
<Caption>PRICE</Caption>
</Divider>