Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-password-eye

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

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
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc