react-native-divider

1.0.3 • Public • Published

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

Prop Type default Description
dashed Boolean false whether line is dashed
orientation enum: left center right left this is optional, if not set it will have the text in the left
borderColor String #e8e8e8 line color
color String rgba(0,0,0,.85) font color

example:

import Divider from 'react-native-divider';
 
<Divider borderColor="#fff" color="#fff" orientation="center">
    Divider
</Divider>;

color

Package Sidebar

Install

npm i react-native-divider

Weekly Downloads

55

Version

1.0.3

License

MIT

Unpacked Size

39.2 kB

Total Files

8

Last publish

Collaborators

  • silenyang