0.1.7 • Published 1 year ago

rn-atom-component v0.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

rn-atom-component

It helps to build UI elements with less effort

Installation

npm install rn-atom-component

Usage Guide

Spinner

import { Spinner } from 'rn-atom-component';

return (
   <View style={style.spinner}>
      <Spinner />
    </View>
)

DashedLine

import { DashedLine } from 'rn-atom-component';

return (
  <View style={{ padding: 20, height: '100%' }}>
    <DashedLine dashLength={5} />
  </View>
);

API Reference

Spinner

Size

size of the spinner, Can be either large or small. Default to large.

typedefaultrequired
SpinnerSizeTypelargeNO

Color

Color of the spinner, Default to default spinner color.

typedefaultrequired
StringSystem DefaultNO

Container Style

Container Style of the spinner view, Default to center of the parent view.

typedefaultrequired
ViewStyleViewStyleNO

Dashed Line

axis

Axis of the line, can be either horizontal or vertical. Defaults to horionztal.

typedefaultrequired
stringhorizontalNO

dashGap

Length of the gap in pixels between each dash, defaults to 2.

typedefaultrequired
number2NO

dashLength

Length of each dash stroke in pixels, defaults to 4.

typedefaultrequired
number4NO

dashThickness

Defines the thickness of each dash stroke in pixels, defaults to 2.

typedefaultrequired
number2NO

dashColor

Defines the color of the dashed line, defaults to Black #000. Any valid React Native colour can be provided.

typedefaultrequired
string#000NO

dashStyle

Allows for custom View styles to be passed to each dash.

typerequired
Object | ArrayNO

style

Allows for custom View styles to be passed to each dashed line container.

typerequired
Object | ArrayNO
0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago