React Native Divider is a component that show a simple configurable divider for React Native.
npm install yd-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} />
Props | Description | isRequire | default |
---|---|---|---|
color | string | No | "#DDD" |
width | number | No | 1 |
textColor | string | No | "#DDD" |
margin | number | No | 5 |
text | string | No | null |
if you are interested to see more features please help me with a cup a coffee.