2.0.2 • Published 5 years ago
rn-dividers v2.0.2
rn-dividers
Divider component for react-natives
Install
yarn add rn-dividers
// or
npm install rn-dividers --saveusage
import Divider from 'rn-dividers';
<Divider>Divider</Divider>;
Props
| Prop | Type | default | Description | 
|---|---|---|---|
| dashed | Boolean | false | whether line is dashed | 
| orientation | enum: leftcenterright | 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 'rn-dividers';
<Divider borderColor="#fff" color="#fff" orientation="center">
    Divider
</Divider>;