yd-react-native-divider
v1.0.1
Published
React Native Divider component
Downloads
2
Maintainers
Readme
React Native Divider
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} />
React Native Divider Props
| Props | Description | isRequire | default | | --------- | ----------- | --------- | ------- | | color | string | No | "#DDD" | | width | number | No | 1 | | textColor | string | No | "#DDD" | | margin | number | No | 5 | | text | string | No | null |
Buy me a coffee
if you are interested to see more features please help me with a cup a coffee.