🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

react-native-password-eye

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-password-eye

A simple and fully customizable React Native component for TextInputs

1.0.5
latest
Version published
Weekly downloads
95
-18.1%
Maintainers
1
Weekly downloads
 
Created

npm version GitHub license

react-native-password-eye

enter image description here

Installation

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'}
/>

FAQs

Package last updated on 23 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts