# rn-password-field

> Customizable react native password field with visibility eye icon.

Latest version **1.0.3** (published 2021-05-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install rn-password-field
pnpm add rn-password-field
yarn add rn-password-field
bun add rn-password-field
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2021-05-29 |
| First published | 2021-05-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 55.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ketan Patil |
| Maintainers | ketan-patil |
| Keywords | npm, password, front-end, form-fields, password-field, login, component, android, ios |

## Links

- npm: https://www.npmjs.com/package/rn-password-field
- Repository: https://github.com/Ketan2010/rn-password-field
- Homepage: https://github.com/Ketan2010/rn-password-field#readme
- Issues: https://github.com/Ketan2010/rn-password-field/issues
- npm.io page: https://npm.io/package/rn-password-field

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2021-05-29
- 1.0.2 — 2021-05-29
- 1.0.1 — 2021-05-29
- 1.0.0 — 2021-05-29

## README

# rn-password-field
Customizable react native password field with visibility eye icon.
![output](./assets/output/output_one.jpeg)

## Installation
`$ npm install --save rn-password-field`

## Usage

```js
 import Formfield from 'rn-password-field'; 
 ```
 Use Formfield component tag along with properties as below.
 
 ```js
<Formfield placeholder='Password' ispassword={true}/>
 ```
 You can also use the same component for plain text field by setting ispassword to `false`
 ```js
<Formfield placeholder='Username' lablevalue='Joan' ispassword={false}/>
 ```
### Properties

|props|value  | required | default value|
|--|--|--|--|
| placeholder | `String`  | No | Null |
| lablevalue | `String`  | No | Null |
| ispassword | `bool`  | Yes | Null |
| style | `style`  | No |  |

### Example: 
``` js
import React, {useState} from 'react'
import { View, Button } from 'react-native'
import Formfield from 'rn-password-field';

export default function login(){
    const [username, setUsername] = useState('')
    const [password, setPassword] = useState('')
    
    const onLoginPress = () =>{
        //your code for login action
    }
    
    return(
        <View>
                <Formfield onChangeText={e=>{setUsername(e)}}  placeholder='Email Id / Phone number' lablevalue={username} ispassword={false}/>
                <Formfield onChangeText={e=>{setPassword(e)}} placeholder='Password' lablevalue={password} ispassword={true}/>
                <Button onPress={onLoginPress} title="Login" />
        </View>
    )
}
```
### Output:
![output](./assets/output/output_one.jpeg) <br>
![output](./assets/output/output_two.jpeg) <br>
![output](./assets/output/output_three.jpeg) <br>

---
_Source: https://npm.io/package/rn-password-field · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
