1.0.1 • Published 1 year ago

yd-react-native-divider v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

React Native Divider

npm

React Native Divider is a component that show a simple configurable divider for React Native.

Installation

npm install yd-react-native-divider

Getting started with React Native Divider

Here is an example of a basic app using React Native Divider:

import Divider from "yd-react-native-divider";

<Divider />
<Divider text={"OR"} />
<Divider width={10} text={"yes"} />
<Divider width={6} text={"NO"} textColor={"red"} margin={10} />
<Divider color={"#000"} text={"ONE"} />
<Divider color={"green"} width={3} text={"step 1"} textColor={"#FFF"} />
<Divider color={"#D4D4D4"} width={3} text={"step 2"} margin={50} />

examples

React Native Divider Props

PropsDescriptionisRequiredefault
colorstringNo"#DDD"
widthnumberNo1
textColorstringNo"#DDD"
marginnumberNo5
textstringNonull

Buy me a coffee

if you are interested to see more features please help me with a cup a coffee.