Default Image

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

AttributeTypeAccepted valuesDescriptionDefault
alignAlignTypeAlignTypeVertical align itemsstart
childrenstring ReactNodeReact ElementRequired. Items to space-
gutter[number, number][right, bottom]Define the space right and space bottom[10, 10]
justifyAlignTypeAlignTypeHorizontal align itemsstart
orientationOrientationTypevertical horizontalShow vertical or horizontal elementshorizontal
styleobjectStyleProp<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!

DiscordGithub

Contributing:

PR's on @redshank/native are always welcome, please see our contribution guidelines to learn how you can contribute to this project.

Copyright © 2023 @redshank.