when i try to elevate the composer by it’s padding, the last chat bubble is covered by it, so what should i do to give space between the last bubble and composer? i tried to search for the answer but didn’t find any related to this kind of issues
const renderInputToolbar = (props) => {
return (
<InputToolbar
{...props}
containerStyle={{ borderTopWidth: 0, paddingVertical: 12 }}
/>
);
};
const renderComposer = (props) => {
return (
<Composer
{...props}
textInputProps={{
onFocus: () => setOnFocus(true),
onBlur: () => setOnFocus(false),
marginHorizontal: 12,
blurOnSubmit: true,
paddingVertical: 12,
paddingHorizontal: 15,
backgroundColor: onFocus ? "#F1E9FD" : "#fff",
borderRadius: 60,
borderColor: onFocus ? "#7210FF" : "#c0c0c0",
borderWidth: 1,
width: "80%",
}}
></Composer>
);
};
<GiftedChat
messages={messages}
showUserAvatar={false}
renderBubble={renderBubble}
renderInputToolbar={renderInputToolbar}
renderComposer={renderComposer}
renderActions={renderActions}
renderSend={renderSend}
alwaysShowSend
user={{ _id: userID, name: username, avatar: avatar }}
onSend={(messages) => handleSend(messages)}
/>
4
Answers
SOLVED
is found the solution for this with adding box height in renderFooter
Hey CCP can you try this ?
Hope it helps
I had exactly this issue , but nothing else worked for me except
and then
You can simply use below prop provided by Giftedchat