a divider component for react-native
yarn add react-native-divider
// or
npm install react-native-divider --save
import Divider from 'react-native-divider';
<Divider>Divider</Divider>;
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>;