Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whatsapp chat Bubble #1875

Closed
Uttu316 opened this issue Jul 20, 2020 · 12 comments
Closed

Whatsapp chat Bubble #1875

Uttu316 opened this issue Jul 20, 2020 · 12 comments
Labels

Comments

@Uttu316
Copy link

Uttu316 commented Jul 20, 2020

Issue Description

How can I create a message Bubble like a Whatsapp Bubble? Time must be at the same line for a single line message otherwise below it.
The bubble should have a minimum width and message text should be flex-start and time would be flex-end.

I tried to restyle the Bubble and Time component but nothing achieved so far.

Steps to Reproduce / Code Snippets

Screenshot_1595278386

Expected Results

image

@Raphaelinyang
Copy link

how are you able to make foreign users chat appear on the left?

@Uttu316
Copy link
Author

Uttu316 commented Jul 22, 2020

Check documentation.

@Raphaelinyang
Copy link

at where?

@Raphaelinyang
Copy link

<GiftedChat messages={messages} onSend={handleSend} user={{ id: user.uid, name: user.displayName, avatar: user.photoURL }} renderBubble={renderBubble} placeholder='Type your message here...' isTyping= {true} renderSend={renderSend} alwaysShowSend scrollToBottom scrollToBottomComponent={scrollToBottomComponent} renderSystemMessage={renderSystemMessage} />

function renderBubble(props) { return ( // Step 3: return the component <Bubble {...props} wrapperStyle={{ right: { // Here is the color change backgroundColor: 'grey' }, left: { backgroundColor: 'green' } }} textStyle={{ right: { color: '#fff' } }} /> ); }

please, where is the issue coming from?

@Raphaelinyang
Copy link

Check documentation.

i have checked the npm documentation

@hackrx
Copy link

hackrx commented Jul 22, 2020

Hey @Uttu316 can you please share the code for the text input UI you have made here,
also are you able to use onTextChanged property or onChangeText or onEndEditing (see #1874)

image

@kalyanijamunkar10
Copy link

kalyanijamunkar10 commented Jul 25, 2020

@Uttu316 , any luck on this? Facing same issue.

@Uttu316
Copy link
Author

Uttu316 commented Jul 30, 2020

Hey @Uttu316 can you please share the code for the text input UI you have made here,
also are you able to use onTextChanged property or onChangeText or onEndEditing (see #1874)

image

Use this prop
onInputTextChanged={e => {
if (e === '') {
setIsTyping(false);
} else {
setIsTyping(true);
}
}}
and this is how I did it. Hope it would help

@Uttu316
Copy link
Author

Uttu316 commented Jul 30, 2020

@Uttu316 , any luck on this? Facing same issue.

@Uttu316 , any luck on this? Facing same issue.

No, Did you find anything? Please tell me something about it?

@Uttu316
Copy link
Author

Uttu316 commented Jul 30, 2020

Check documentation.

i have checked the npm documentation

Pass messages array in messages prop. and give right side user id in user prop. Thats it!

@Raphaelinyang
Copy link

please, i will really appreciate it, if you can show me how you did yours, cos ive tried this method, and its not working

Check documentation.

i have checked the npm documentation

Pass messages array in messages prop. and give right side user id in user prop. Thats it!

@stale
Copy link

stale bot commented Aug 31, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Aug 31, 2020
@stale stale bot closed this as completed Sep 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants