-
-
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
App crashes when sending message in Gifted Chat #2550
Comments
Any updates on this? Same issue here! |
Instead of passing onSend function to the chat I am passing it directly to the InputToolbar component. This resolved my issue. I hope it helps! |
same issue anyone know the solution? |
same issue here. any update |
I’ve resolved the issue. Below are the updated versions and a brief explanation of the changes made. Updated VersionsExpo: ^52.0.7 ChangesMessage ID: Replaced Date.now() with Crypto.randomUUID(). Updated ChatScreen Component
eas.json Configuration
EAS Build Command
|
Issue is with the onSend props of react-native-gifetd-chat Updated versionsExpo: ^52.0.7 Updated code
|
The issue is with the message id generator function. You can override this using the if you want to generate a uuid you can use either of these libs
|
So what is the gifted chat solution? |
App crashes when sending message in Gifted Chat
I am experiencing a crash in my Expo app when I send a message using the Gifted Chat component. The app works perfectly in the Android simulator but crashes when I build the APK and run it on a physical device.
Steps to reproduce:
Code Snippets
`
import React, { useState, useCallback, useEffect } from "react";
import { Bubble, GiftedChat, Send } from "react-native-gifted-chat";
import { SafeAreaView, View, Text } from "react-native";
import { Colors } from "../../constants/Colors";
import { Ionicons } from "@expo/vector-icons";
import { useSafeAreaInsets } from "react-native-safe-area-context";
Additional Information
The text was updated successfully, but these errors were encountered: