react-native-autogrow-textinput
A helper component meant to be used as a drop-in replacement for RN TextInput
Installation
Install using npm
:
npm i react-native-autogrow-textinput --save
How To Use
Import the new component:
import {AutoGrowingTextInput} from 'react-native-autogrow-textinput';
Now use it as you would normally do with a ScrollView
to wrap arround TextInput components:
<AutoGrowingTextInput style={styles.textInput} placeholder={'Your Message'} />
Example Project
Check out the full example project here.
In the example folder, perform npm install
and then run it from the Xcode project.