-
-
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
Unable to input GIFs from Google Keyboard #1318
Comments
Hi, same here. We want to integrate the possibility to send gif via the keyboard. |
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. |
Hello, I have the same issue. |
You need to add listener for ForegroundSharing, i solve this problem |
@ThemNumbers could you expand on your solution? |
@ThemNumbers What is that? |
I was able to get this working by doing the following:
type OnImageChangeCallback = (event: { nativeEvent: { uri: string } }) => void;
const onImageChange: OnImageChangeCallback = ({nativeEvent}) => {
const {uri} = nativeEvent;
// upload gif using local uri to somewhere publicly accessible (eg. firebase storage)
// send a new message with message.image = <publicDownloadUrl>
}
const renderComposer = props => <Composer {...props} textInputProps={{onImageChange}} />;
return <GiftedChat renderComposer={renderComposer} /> |
Issue Description
When user tries to insert a GIF, they get the message 'app_name doesn't support image insertion here'
Steps to Reproduce / Code Snippets
Gifted chat example with no other modifications, running on android with Google Keyboard. Use the keyboard to attempt to insert a GIF.
Expected Results
Developer should have some way to receive the selected GIF, and chose to deal with it how they deal with pictures etc. (or just have the GIF pop into the message box like Google Messager)
Additional Information
The text was updated successfully, but these errors were encountered: