LogoCraftReactNative
Components

Divider

A visual separator that can be used to divide content horizontally or vertically.

Installation

npx @craftreactnative/ui add Divider

Usage

Screen.tsx
import { Divider } from '@/craftrn-ui/components/Divider';
 
export const Screen = () => (
  <View>
    <Text>Content above</Text>
    <Divider />
    <Text>Content below</Text>
  </View>
);

Props

PropTypeDefault
style
ViewProps
-
orientation?
"horizontal" | "vertical"
'horizontal'

Dependencies

1 packages
react-native-unistyles

On this page