Divider renders a one-pixel rule using the shared border color.
Usage
Props
Divider also accepts React Native ViewProps.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Separate content with a horizontal or vertical rule
Divider renders a one-pixel rule using the shared border color.
import { Divider, Text, View } from '@amisi-mobile-starter/ui';
export const Sections = () => (
<View className="gap-3">
<Text>Account</Text>
<Divider />
<Text>Security</Text>
</View>
);
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | 'horizontal' | 'vertical' | 'horizontal' | Rule direction. A vertical divider needs a constrained parent height. |
Divider also accepts React Native ViewProps.Was this page helpful?