Skip to main content

Divider

Thin separator, horizontal or vertical, with an optional centered label.

Usage

import {Divider} from 'rn-inkpad';

<Divider />
<Divider text="OR" />
<Divider orientation="vertical" spacing={16} />
<Divider color="#DB504A" thickness={3} />

Props

NameTypeDefaultDescription
orientation'horizontal' | 'vertical'horizontalDirection.
colorstringtheme borderLine color.
thicknessnumberhairlineLine thickness.
textstringCentered label (horizontal only).
textStyleStyleProp<TextStyle>Label style.
spacingnumber8Margin around the divider.
styleStyleProp<ViewStyle>Container style.