react-native-password-field

1.0.8 • Public • Published

react-native-password-field

This is a react native custom text input component. This text input will hide and show text based on icon clicked in the text field. This version supports pod install and is compatible with react-native 0.60 and above.

Getting started

$ npm install react-native-password-field --save or $ yarn add react-native-password-field

Mostly automatic installation

For react native version < 0.60, call react-native link before proceeding. $ react-native link react-native-password-field

Follow the below steps, for all versions of react native that supports pod. $ cd ios $ pod install

Usage

 
import PasswordField from 'react-native-password-field';
 
// Add a state in constructor with name password and update it based on the operation performed
 
<PasswordField
    placeholder={'Password'}
    passwordValue={this.state.password}
    backgroundColor={'white'}
    textColor={'black'}
    onChangeText={password => this.setState({password: password})}
/>

/react-native-password-field/

    Package Sidebar

    Install

    npm i react-native-password-field

    Weekly Downloads

    0

    Version

    1.0.8

    License

    MIT

    Unpacked Size

    241 kB

    Total Files

    61

    Last publish

    Collaborators

    • shwetap