1.0.11 • Published 6 years ago

react-native-text-input-enhance v1.0.11

Weekly downloads
26
License
MIT
Repository
github
Last release
6 years ago

react-native-text-input-enhance npm version

Demo

npm.io

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

This issue can fix in the future with this fix #18278

Usage

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


1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago