# react-native-text-input-enhance

> Text Input Enhance to fix clear text value in React Native Text Input

Latest version **1.0.11** (published 2018-06-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-text-input-enhance
pnpm add react-native-text-input-enhance
yarn add react-native-text-input-enhance
bun add react-native-text-input-enhance
```

## 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.11 |
| Published | 2018-06-27 |
| First published | 2018-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 661.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Duong Minh Chien |
| Maintainers | minhchienwikipedia |
| Keywords | react-native, minhchienwikipedia, agiletechvn, ios, android |

## Links

- npm: https://www.npmjs.com/package/react-native-text-input-enhance
- Repository: https://github.com/agiletechvn/react-native-text-input-enhance
- Homepage: https://github.com/agiletechvn/react-native-text-input-enhance#readme
- Issues: https://github.com/agiletechvn/react-native-text-input-enhance/issues
- npm.io page: https://npm.io/package/react-native-text-input-enhance

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.11 (latest) — 2018-06-27
- 1.0.10 — 2018-06-27
- 1.0.9 — 2018-06-21
- 1.0.8 — 2018-06-21
- 1.0.7 — 2018-06-21
- 1.0.6 — 2018-06-21
- 1.0.5 — 2018-06-08
- 1.0.4 — 2018-06-08
- 1.0.3 — 2018-06-08
- 1.0.2 — 2018-06-08
- 1.0.1 — 2018-06-08
- 1.0.0 — 2018-06-08

## README

# react-native-text-input-enhance [![npm version](https://badge.fury.io/js/react-native-text-input-enhance.svg)](https://badge.fury.io/js/react-native-text-input-enhance)

## Demo
![](./demo.gif)

## Getting started

`$ npm install react-native-text-input-enhance --save`

## Why you should this TextInput
In React Native version 0.54.0 we have bug
- `clear()` doesn't work from the second time

#Issue
[#18272](https://github.com/facebook/react-native/issues/18272)

This issue can fix in the future with this fix
[#18278](https://github.com/facebook/react-native/pull/18278)

## Usage
```javascript
import RNTextInput from 'react-native-text-input-enhance';

// TODO: What to do with the module?

<TextInput 
  hasRef={ref => (this.textInputRef = ref)} // Use "hasRef" instead of "ref"
  onSubmitEditing={() => this.textInputRef2.focus()} 
/> 
<TextInput hasRef={ref => (this.textInputRef2 = ref)} />

// You can call this fuction in some where to clear text
this.textInputRef.clear();

```

---

## License

This module is [MIT licensed](./LICENSE)

---

---
_Source: https://npm.io/package/react-native-text-input-enhance · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
