1.0.3 • Published 6 years ago

react-native-divider v1.0.3

Weekly downloads
101
License
MIT
Repository
github
Last release
6 years ago

react-native-divider

a divider component for react-native

Install

yarn add react-native-divider
// or
npm install react-native-divider --save

usage

import Divider from 'react-native-divider';

<Divider>Divider</Divider>;

default

Props

PropTypedefaultDescription
dashedBooleanfalsewhether line is dashed
orientationenum: left center rightleftthis is optional, if not set it will have the text in the left
borderColorString#e8e8e8line color
colorStringrgba(0,0,0,.85)font color

example:

import Divider from 'react-native-divider';

<Divider borderColor="#fff" color="#fff" orientation="center">
    Divider
</Divider>;

color