1.0.5 • Published 2 years ago

react-native-password-eye v1.0.5

Weekly downloads
87
License
MIT
Repository
github
Last release
2 years ago

npm version GitHub license

react-native-password-eye

enter image description here

Installation

  1. install react-native-vector-icon
  2. Run: $ npm install --save react-native-password-eye

usage

 import TextBox from 'react-native-password-eye'; 

place <TextBox> tag wherever you want to have it.

<TextBox onChangeText={(text) => console.log('onChangeText: ', text)} />

Methods

propsrequired
onChangeTextYES

Properties

propsvaluedefault value
alertTypeone of success, warning, errornull
blurOnSubmitboolfalse
hintstringnull
hintColorstring#818181
hintStylesstyle
inputStylestyle
placeholderstring
placeholderTextColorstring#C5C5C5
rtlboolfalse
returnKeyTypeenum ( similar to default TextInput )next
secureTextEntryboolfalse
stylestyle

styles

propsdescription
containerStylesstyling for view containing the input and the hint message
inputStylestyling for Input Component
hintStylesstyling for hint text in the bottom of the input

customize icons

propsdescriptiondefault value
iconFamilyone of the icon sets of react-native-vector-iconFeather
iconSuccessicon name for the success iconsmile
iconSuccessColoricon color for the success icon#28a745
iconWarningicon name for the warning iconalert-triangle
iconWarningColoricon color for the warning icon#ffc107
iconAlerticon name for the error iconalert-circle
iconAlertColoricon color for the error icon#dc3545
eyeColoricon color for the eye icon#2E2E2E

example:

import TextBox from 'react-native-password-eye';

<TextBox 
	iconFamily={'MaterialCommunityIcons'}
	iconSuccess={'emoticon-happy-outline'}
	iconWarning={'alert-outline'}
	iconAlert={'alert-octagon-outline'}
/>