1.0.3 • Published 3 years ago

sizedbox v1.0.3

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

SizedBox

A component for react-native app that add vertical or horizontal space on your screen, similar to Flutter's SizedBox widget!

More details

  • This component help adding vertical or horizontal spaces between components.
  • Flutter's widget "SizedBox" was the inspiration to create this react-native component.

Installation

Use the npm package manager to install sizedbox :

npm i sizedbox

Or you can use yarn :

yarn add sizedbox

How to use

import {SizedBox} from 'sizedbox';

// this is to add a vertical space of 10px
<SizedBox vertical={10} />
// this is to add a horizontal space of 20px
<SizedBox horizontal={20} />

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.