Separtor Primitive
Creates a visual or semantic distinction between content.
Installation
Section titled “Installation”Install the component via your command line.
npx expo install @rn-primitives/separator
Copy/paste the following code to ~/components/primitives/separator/index.tsx
Copy/paste the following code to ~/components/primitives/separator/types.ts
import * as SeparatorPrimitive from '@rn-primitives/separator';
function Example() { return <SeparatorPrimitive.Root />}
Extends View
props
Prop | Type | Note |
---|---|---|
orientation | ’horizontal’ | ‘vertical’ | Defaults to horizontal (optional) |
decorative | boolean | (optional) |
asChild | boolean | (optional) |