1.0.6 • Published 6 years ago

react-native-hr-plus v1.0.6

Weekly downloads
49
License
ISC
Repository
github
Last release
6 years ago

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

PropDefaultTypeDescription
color'white'colorColor for the border on both sides
width1numberWidth of the hr
style{}styleStyle of the hr view

Contributing

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