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-haptics

Usage

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

PropTypeDefaultDescription
insetnumber0Space before the line starts.
verticalbooleanfalseAn upright line for rows.