Skip to content

thijssmudde/React-Native-Hr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Native Hr Plus

Hr component which you can use for awesome login/register screens

PremiumReact

Installation

NPM

npm install react-native-hr-plus --save

Yarn

yarn add react-native-hr-plus

Usage

import Hr from "react-native-hr-plus";

<Hr color="white" width={1}>
    <Text style={styles.textWithDivider}>OR</Text>
</Hr>

Your text styles

textWithDivider: {
    color: "white",
    marginVertical: 10,
    paddingHorizontal: 10
}

Properties

Prop Default Type Description
color "white" color Color for the border on both sides
width 1 number Width of the hr
style {} style Style of the hr view

Contributing

If you would like to improve on this module feel free to do so

About

Hr component for awesome login/register screens

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published