Mobile › Lists and layout
Divider
A hairline between groups of content, across or upright.
Installation
npx expo install plankui-mobile react-native-safe-area-context expo-hapticsUsage
import { Divider } from "plankui-mobile";
<Divider />
<Divider inset={16} />
<View style={{ flexDirection: "row" }}>
<Text>Left</Text>
<Divider vertical />
<Text>Right</Text>
</View>iOS and Android
iOS: A 0.5 pt hairline.
Android: A 1 dp Material divider.
API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| inset | number | 0 | Space before the line starts. |
| vertical | boolean | false | An upright line for rows. |