You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we send/receive any new message its not scrolling to latest message, rather its scrolling to top instead of scrolling to bottom as i given inverted={false}, also when i open chat history it should scroll to bottom.
When we send/receive any new message its not scrolling to latest message, rather its scrolling to top instead of scrolling to bottom as i given inverted={false}, also when i open chat history it should scroll to bottom.
What changes i need to made in my code?
My code:
<KeyboardAvoidingView
style={{flex: 1}}
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
keyboardVerticalOffset={isKeyboardVisible ? 170 : 0}>
<GiftedChat
messagesContainerStyle={{
backgroundColor: COLORS.GRAY98,
...messagesContainerStyle,
}}
isKeyboardInternallyHandled={false}
keyboardShouldPersistTaps="never"
messages={messages}
inverted={false}
infiniteScroll
isLoadingEarlier
renderAvatarOnTop
renderSend={() => (
<TouchableOpacity
onPress={() => {
onSend();
}}>
)}
user={{
_id: currentUserInfo?.id,
name:
${currentUserInfo?.firstName} ${currentUserInfo?.lastName}
,}}
text={inputText}
onInputTextChanged={text => setInputText(text)}
renderBubble={renderCustomBubble}
renderInputToolbar={renderCustomInputToolbar}
placeholder={t('TYPE_MESSAGE')}
/>
The text was updated successfully, but these errors were encountered: