React Native · Components
Separator
A thin line separating sections (1 px, theme border color).
2 exports
Live example
The preview runs in the browser with the web component; the native component takes the same props and looks the same on iOS and Android.
Preview
@yasinsensoy/web
React component library.
Subsection
Code
Events
- Events appear here when you interact with the preview.
Import
Separator
componentA thin line separating sections (1 px, theme border color). Can hold text in the middle.
Examples
SeparatorProps
interfaceSeparator props.
| Name | Type | Default | Description |
|---|---|---|---|
orientation? | "horizontal" | "vertical" | "horizontal" | Orientation. |
decorative? | boolean | true | Decorative only: hidden from screen readers. |
label? | ReactNode | Text in the middle of the line (e.g. "or"); horizontal only. | |
style? | StyleProp<ViewStyle> | Container style. |