-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
RFC: Quick Replies #826
Comments
@xcarpentier @brunocascio @FaridSafi Looking for input on the API for this feature as I'm planning to work on this feature. The API I'm thinking of is: Message: {
_id: 1,
text: 'My message',
"quickReplies":[
{
"contentType":"text",
"title":"Yes",
"imageUrl":"http://example.com/img/yes.png"
},
{
"contentType":"text",
"title":"No",
"imageUrl":"http://example.com/img/no.png"
}
]
} Component Props:
onQuickReply(quickReply) {
if(quickReply.contentType === "text") {
// send text message
} else if (quickReply.contentType === "location") {
// send location
} else if (quickReply.contentType === "camera") {
// open camera then send video / image
}
// infinite possibilities
}
...
<GiftedChat onQuickReply={quickReply => this.onQuickReply(quickReply)}>} |
@watadarkstar yes yes 👍 |
Or renderMessage |
@xcarpentier True I guess you can just use |
@watadarkstar Love this idea, how can I help complete this feature? |
Hi @pdoggi I ended up doing it in my local project. Do you want to split the work up and write up a PR with the documentation and I can write the code? |
@watadarkstar I'm sorry I didn't see your message earlier! I would love to work together on this! The best way to reach me is via email and phone. What's a good way to exchange contact information? I just sent you a message via your website, so you will have my contact. Let me know how I can help! |
any news about the Quick replies |
@husseinraoouf @pdoggi I wish I had more time for this but feel free to take over my fork and complete the feature 😄 |
@watadarkstar No Problem 😄 |
hey sorry, I've been super busy as well. 😞 |
any updates regarding this? |
Hello @watadarkstar, @husseinraoouf, @pdoggi - I am interested in this very useful initiative. I was wondering if you got a change to progress the development of this item? Thakn you! |
@OlivierBessi @grinono Unfortunately, I don't have the bandwidth to work on this but feel free to submit a PR 😄 EDIT: You can use this PR as a starting point and make it your own: https://github.com/FaridSafi/react-native-gifted-chat/pull/886/files |
can i make application for phone call , messages,block number, etc etc auto response application using react native |
Not sure if this library can do suggested responses but it would be very helpful for people who build chat bots.
Something like this:
![customer-chat](https://user-images.githubusercontent.com/3059371/38707968-d31ad128-3e81-11e8-94c0-e98abfe61b7b.png)
Facebook calls them
quick_replies
: https://developers.facebook.com/docs/messenger-platform/send-messages/quick-repliesKik calls them
suggested_responses
https://dev.kik.com/#/docs/messaging#suggested-response-keyboard
Telegram calls them
inline_keyboard
https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updatingThe text was updated successfully, but these errors were encountered: