An open API service indexing awesome lists of open source software.

https://github.com/null-none/rn-dividers

Divider component for react-natives
https://github.com/null-none/rn-dividers

divider native react react-native

Last synced: 7 months ago
JSON representation

Divider component for react-natives

Awesome Lists containing this project

README

          

# rn-dividers

Divider component for react-natives

# Install

```js
yarn add rn-dividers
// or
npm install rn-dividers --save
```

# usage

```js
import Divider from 'rn-dividers';

Divider;
```

![default](./Images/default.jpg)

# 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:

```js
import Divider from 'rn-dividers';

Divider
;
```

![color](./Images/colors.jpg)