Skip to main content
Version: Next

Divider

Divider component render a separator that can separate two components horizontally and vertically.

Example banner

Implementation code

import { StyledView, StyledText, Divider } from 'rn-nativeflow';

const Component = () => {
return (
<StyledView gap={20}>
<StyledText primary>Item 1</StyledText>
<Divider />
<StyledText primary>Item 2</StyledText>
</StyledView>

<StyledView gap={20} flexDirection='row'>
<StyledText primary>Item 1</StyledText>
<Divider />
<StyledText primary>Item 2</StyledText>
</StyledView>
);
}
export default Component;

Props

PropTypeDefaultDescription
thicknessnumber0.2It sets the thickness of the border
colorstringIt sets color of the divider
styleobjectHelps to change the styles of the divider