Space
Space component.
import { Space } from '@redshank/native';
Examples
Default
Default space element.
Gutter
Gutter spacing children elements.
Vertical Orientation
Vertical orientation elements.
Justify And Align
Justify and align positions elements.
APIs
Space Props
Api props extends from View
Attribute | Type | Accepted values | Description | Default |
---|---|---|---|---|
align | AlignType | AlignType | Vertical align items | start |
children | string ReactNode | React Element | Required. Items to space | - |
gutter | [number, number] | [right, bottom] | Define the space right and space bottom | [10, 10] |
justify | AlignType | AlignType | Horizontal align items | start |
orientation | OrientationType | vertical horizontal | Show vertical or horizontal elements | horizontal |
style | object | StyleProp<ViewStyle> | Style button wrapper | - |
Align Type
type AlignType = 'start' | 'end' | 'center';
Community:
We're excited to see the community adopt @redshank/native, raise issues, and provide feedback. Whether it's a feature request, bug report, or a project to showcase, please get involved!
DiscordGithubContributing:
PR's on @redshank/native are always welcome, please see our contribution guidelines to learn how you can contribute to this project.