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

quick replies? #14

Open
lmessinger opened this issue Jun 23, 2019 · 1 comment
Open

quick replies? #14

lmessinger opened this issue Jun 23, 2019 · 1 comment

Comments

@lmessinger
Copy link

Issue Description

Hi,

When trying the quick replies feature from the original gifted chat, i get
Warning: Each child in a list should have a unique "key" prop.
Check the render method of WebScrollView
any ideas?

thanks!!

Steps to Reproduce / Code Snippets

this is the messages
{
_id: 1,
text: 'This is a quick reply. Do you love Gifted Chat? (radio) KEEP IT',
createdAt: new Date(),
quickReplies: {
type: 'radio', // or 'checkbox',
keepIt: true,
values: [
{
title: '😋 Yes',
value: 'yes',
},
{
title: '📷 Yes, let me show you with a picture!',
value: 'yes_picture',
},
{
title: '😞 Nope. What?',
value: 'no',
},
],
},
user: {
_id: 2,
name: 'React Native',
},
},
{
_id: 2,
text: 'This is a quick reply. Do you love Gifted Chat? (checkbox)',
createdAt: new Date(),
quickReplies: {
type: 'checkbox', // or 'radio',
values: [
{
title: 'Yes',
value: 'yes',
},
{
title: 'Yes, let me show you with a picture!',
value: 'yes_picture',
},
{
title: 'Nope. What?',
value: 'no',
},
],
},
user: {
_id: 2,
name: 'React Native',
},
}

Expected Results

[FILL THIS OUT]

Additional Information

  • Nodejs version: [FILL THIS OUT]
  • React version: [FILL THIS OUT]
  • react-web-gifted-chat version: [FILL THIS OUT]
  • Browser(s) (Chrome, etc.): [FILL THIS OUT]
@johniak
Copy link
Owner

johniak commented Jun 24, 2019

Quick replays are not implemented, on this fork. I think I will add it later. There is no easy way to merge it with original repository because they switched to typescript in the meantime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants