jevakallio/react-native-chat-tutorial

at Android Device List is pushed too far away from textinput

Opened this issue · 2 comments

"react-native": "^0.53.3"
I have found a huge gap between keyboard and textinput while tapping on textinput to write .

I copy pasted code from https://github.com/jevakallio/react-native-chat-tutorial/blob/master/App.js as it is , not a single line is changed .

1
screen shot 2018-03-01 at 2 57 44 pm

Came across this problem too, find any fix?

Found the problem, its the padding behaviour in the KeyboardAvoidingView. On iOS it might be fine but on android it seems to be causing this issue.

It can be fixed by changing the KeyboardAvoidingView behaviour to this:

<KeyboardAvoidingView behavior='padding'{Platform.select({ android: null, ios: '' })}>

Made a pull request for the fix: #7