Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Keyboard alignment issue with multiline text input

$
0
0

I have also used KeyboardAvoidingView, this aligns the keyboard properly if its only single line but not with multiline.

<KeyboardAvoidingView behavior="position"><TextInput     placeholder='input 1'     placeholderTextColor='gray'     multiline={true}     onContentSizeChange={(e) => console.log(e.nativeEvent.contentSize)}     value='text 1'    /><TextInput     placeholder='input 2'     placeholderTextColor='gray'     multiline={true}     onContentSizeChange={(e) => console.log(e.nativeEvent.contentSize)}     value='text 2'    /></KeyboardAvoidingView>

Is there any way to align the keyboard properly with multiline textInputs in react native?


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>