After updating to iOS 14, for some reason the keyboardavoidingview handler seems to be malfunctioning. When I press send the toolbar is misplaced roughly by ~20 px, if I dismiss the keyboard and click on the input again, it goes back into place. This seems to only happen when I click send for some reason.
I have also noticed that if I set the 'isKeyboardInternallyHandled' prop to false, then I don't get this problem. However, the keyboard is internally handled, so I can't do that.

I tested this with any example, and it seems to be happening, so code snippets won't be of much help.
The inputToolbar shouldn't be moving up when I press send.
having the same issue since upgrading my simulator to iOS 14 and for me, the extra space appears & disappears on typing:

React version: 16.11.0
React Native version: 0.62.2 (EXPO v38)
react-native-gifted-chat version: 0.16.3
Platform(s) (iOS, Android, or both?): iOS 14 (iPhone 11 Pro simulator)
TypeScript version: 3.9.5
Any solution to this?
Never mind, I was able to sort this out.
@JLucasCAmorim Could you please share your solution?
may I know how? I have the same problem
@timvandijck @art1373 you need to set the isKeyboardInternallyHandled as false, and then you can put a KeyBoardAvoidView as the father of GiftedChat. Something like that:
<KeyBoardView>
<GiftedChat
messages={messages}
onSend={handleSend}
alwaysShowSend
wrapInSafeArea
isKeyboardInternallyHandled={false}
../>
</KeyBoardView>
@timvandijck @art1373 you need to set the isKeyboardInternallyHandled as false, and then you can put a KeyBoardAvoidView as the father of GiftedChat. Something like that:
<KeyBoardView> <GiftedChat messages={messages} onSend={handleSend} alwaysShowSend wrapInSafeArea isKeyboardInternallyHandled={false} ../> </KeyBoardView>
Can confirm. This is exactly what I ended up doing.
my Version
<KeyboardAvoidingView
behavior={isIos ? "padding" : undefined}
style={{ flex: 1 }}
>
<GiftedChat
// alignTop
isKeyboardInternallyHandled={false}
alwaysShowSend
infiniteScroll
messages={messages}
renderBubble={(props) => <ChatBubble {...props} theme={theme} />}
renderAvatar={() => null}
placeholder="Messeage..."
renderActions={(props) => <ButtonAttach {...props} />}
renderSend={renderSend}
renderInputToolbar={renderInputToolbar}
textInputStyle={[
styles.chatInput,
{
backgroundColor: darkTheme ? Colors.primaryDark : Colors.white,
},
]}
messagesContainerStyle={{
backgroundColor: darkTheme ? Colors.primary : Colors.white,
}}
onSend={(messages) => onSend(messages)}
user={{
_id: 1,
}}
/>
</KeyboardAvoidingView>
@lsps9150414 did you ever get that fixed? i'm having the exact same issue. keyboardavoidingview didn't work for me for this case.
Update: seems to be a simulator issue (xcode 12 with ios14). issue doesn't appear with a physical iphone 11 with ios14.
This worked for me: (xcode 12, ios 14.1)
<KeyboardAvoidingView
behavior={Platform.OS === 'ios' ? 'padding' : undefined}
style={{ flex: 1, backgroundColor: 'white' }}>
<GiftedChat
isTyping
alwaysShowSend
lightboxProps={{ useNativeDriver: true }}
onLoadEarlier={onLoadEarlierMessages}
isLoadingEarlier={isLoadingEarlier}
loadEarlier={messages.length >= 15 && messagePage <= messageLastPage}
infiniteScroll
messages={messages}
onSend={currentMessage => onSend(currentMessage)}
user={{
_id: userId,
}}
isCustomViewBottom
renderActions={renderActions}
renderComposer={renderComposer}
renderInputToolbar={renderInputToolbar}
renderSend={renderSend}
isKeyboardInternallyHandled={false}
/>
</KeyboardAvoidingView>
I am getting this issue on a physical phone as well
Just fixed this by adding bottomOffset using react-native-safe-area-context:
const insets = useSafeAreaInsets();
<GiftedChat
// all your code
bottomOffset={insets.bottom}
/>
Not working
Most helpful comment
having the same issue since upgrading my simulator to iOS 14 and for me, the extra space appears & disappears on typing:

React version: 16.11.0
React Native version: 0.62.2 (EXPO v38)
react-native-gifted-chat version: 0.16.3
Platform(s) (iOS, Android, or both?): iOS 14 (iPhone 11 Pro simulator)
TypeScript version: 3.9.5