Skip to content

Separtor Primitive

Creates a visual or semantic distinction between content.

Installation

Install the component via your command line.

Terminal window
npx expo install @rn-primitives/separator

Usage

import * as SeparatorPrimitive from '@rn-primitives/separator';
function Example() {
return <SeparatorPrimitive.Root />
}

Props

Root

Extends View props

PropTypeNote
orientation’horizontal’ | ‘vertical’Defaults to horizontal (optional)
decorativeboolean(optional)
asChildboolean(optional)