Coder Social home page Coder Social logo

wrathchaos / react-native-flex-divider Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 0.0 1.67 MB

Fully customizable flex divider with a easy use for React Native

Home Page: https://freakycoder.com

JavaScript 15.83% Shell 0.76% Starlark 3.35% Java 34.48% Ruby 4.40% Objective-C 24.98% TypeScript 16.20%
react reactjs react-native mobile app divider flex-divider flex ui ui-components

react-native-flex-divider's Introduction

React Native Flex Divider

React Native Flex Divider

npm version npm Platform - Android and iOS License: MIT styled with prettier

React Native Flex Divider React Native Flex Divider

Installation

Add the dependency:

npm i react-native-flex-divider

Peer Dependencies

Zero Dependency

Usage

Import

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

Fundamental Usage

<FlexDivider text="Settings" />

Customization Usage

<FlexDivider
  text="USER SETTINGS"
  textStyle={{ fontFamily: "SuezOne-Regular" }}
  rightDividerStyle={{ flex: 5 }}
/>

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

  • 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.

react-native-flex-divider's People

Contributors

wrathchaos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.