1.0.3 • Published 6 years ago
react-native-divider v1.0.3
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>;
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>;