react-native-auto-grow-textinput
Advanced tools
Comparing version 1.1.2 to 1.2.0
{ | ||
"name": "react-native-auto-grow-textinput", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "This component allows to create auto grow text input for both platforms (iOS and Android).", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,6 +7,15 @@ # ReactNative Auto Grow TextInput | ||
## Attantion | ||
If you use ReactNative <= 0.43.X in your poject, you should install version 1.1.2 of ReactNative Auto Grow TextInput. | ||
```bash | ||
$ yarn add react-native-auto-grow-textinput@1.1.2 | ||
``` | ||
## Getting started | ||
First of all, you need to install `react-native-auto-grow-textinput` to your project. | ||
``` | ||
```bash | ||
$ yarn add react-native-auto-grow-textinput | ||
@@ -13,0 +22,0 @@ ``` |
@@ -6,3 +6,2 @@ // @flow | ||
StyleSheet, | ||
Platform, | ||
View, | ||
@@ -53,10 +52,3 @@ TextInput, | ||
...this.props, | ||
...Platform.select({ | ||
ios: { | ||
onContentSizeChange: this._onContentSizeChange, | ||
}, | ||
android: { | ||
onChange: this._onContentSizeChange | ||
}, | ||
}), | ||
onContentSizeChange: this._onContentSizeChange, | ||
}, [ 'style', 'maxLines' ]); | ||
@@ -63,0 +55,0 @@ |
15884
38
86