"Type message.."Input is behind keyboard
you cant see what your typing until u remove keyboard.
I opened the project with expo and tried to type
Input Textbox should be above keyboard on focus so you can see what you are typing.
[FILL THIS OUT]

After investigation i learned this issue only happens with expo.
I found a fix on a previous post #461
import React, { Component } from 'react';
import { View, Platform } from 'react-native';
import KeyboardSpacer from 'react-native-keyboard-spacer';
import { GiftedChat } from 'react-native-gifted-chat';
export default class Chat extends Component {
render() {
const giftedChatMessages = [
...
];
return (
<View style={{flex: 1}}>
<GiftedChat
messages={giftedChatMessages}
onSend={newMessages => onSend(newMessages[0].text)}
user={{
_id: 1,
}}
renderAvatar={() => null}
/>
{Platform.OS === 'android' ? <KeyboardSpacer /> : null }
</View>
)
}
}
Thanks.
Thank You!
Thanks @alfizo !
Thanks! :)
Most helpful comment
After investigation i learned this issue only happens with expo.
I found a fix on a previous post #461