Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/wrathchaos/react-native-flex-divider

Fully customizable flex divider with a easy use for React Native
https://github.com/wrathchaos/react-native-flex-divider

android app apple divider flex flex-divider freakycoder google ios kuray mobile programming react react-native reactjs ui ui-components ui-design wrathchaos

Last synced: 5 days ago
JSON representation

Fully customizable flex divider with a easy use for React Native

Awesome Lists containing this project

README

        

React Native Flex Divider

[![React Native Flex Divider](https://img.shields.io/badge/-Fully%20customizable%20flex%20divider%20with%20a%20easy%20use%20for%20React%20Native-orange?style=for-the-badge)](https://github.com/WrathChaos/react-native-flex-divider)

[![npm version](https://img.shields.io/npm/v/react-native-flex-divider.svg?style=for-the-badge)](https://www.npmjs.com/package/react-native-flex-divider)
[![npm](https://img.shields.io/npm/dt/react-native-flex-divider.svg?style=for-the-badge)](https://www.npmjs.com/package/react-native-flex-divider)
![Platform - Android and iOS](https://img.shields.io/badge/platform-Android%20%7C%20iOS-blue.svg?style=for-the-badge)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=for-the-badge)](https://github.com/prettier/prettier)



React Native Flex Divider


React Native Flex Divider


# Installation

Add the dependency:

```bash
npm i react-native-flex-divider
```

## Peer Dependencies

Zero Dependency

# Usage

## Import

```jsx
import FlexDivider from "react-native-flex-divider";
```

## Fundamental Usage

```jsx

```

## Customization Usage

```jsx

```

## Example Project 😍

You can checkout the example project 🥰

Simply run

- `npm i`
- `react-native run-ios/android`

should work of the example project.

# Configuration - Props

## Fundamentals

| Property | Type | Default | Description |
| -------- | :----: | :-------: | --------------- |
| text | string | undefined | change the text |

## Customization (Optionals)

| Property | Type | Default | Description |
| ----------------- | :-------: | :-----: | ----------------------------------------------------------------------- |
| style | ViewStyle | default | set or override the style object for the main container |
| text | ViewStyle | default | set or override the style object for the `text style` |
| leftDividerStyle | ViewStyle | default | set or override the style object for the `left divider style` |
| rightDividerStyle | ViewStyle | default | set or override the style object for the `right divider style` |
| TextComponent | Text | default | set your own component instead of default react-native `Text` component |

## Future Plans

- [x] ~~LICENSE~~
- [ ] Write an article about the lib on Medium

## Author

FreakyCoder, [email protected]

## License

React Native Flex Divider is available under the MIT license. See the LICENSE file for more info.