App crushes after long press on message
Describe the bug When I press a long press on a message in the chat to see the actions (delete, etc), I see it for a second and than the app crashes
Dev environment info (please complete/provide the following information):
- stream-chat-react-native: 3.10.2
- react-native : 0.63.3
- Emulator on android device
Expected behavior To see the available actions for a message
gz#19000
@ChenDimri do you see some error in console?
Also do you mind sharing some code around chat components in your app?
Hi, I don't see any error/warning in the console. I just started using the chat so most of the code is similar to the examples that are shown in the documentation in your website. I have a problem with reanimated library on IOS which I'm trying to solve with one of your colleagues. It might be related somehow?
On Tue, Feb 1, 2022 at 11:26 AM Vishal Narkhede @.***> wrote:
Also do you mind sharing some code around chat components in your app?
— Reply to this email directly, view it on GitHub https://github.com/GetStream/stream-chat-react-native/issues/1119#issuecomment-1026634321, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV6RM7H6DEN5W23DJWTDV63UY6RNNANCNFSM5NEJZMPA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
Hello, I'm also getting same issue
- stream-chat-react-native: 3.10.2
- react-native : 0.67.2
I've applied patch mentioned here: https://github.com/GetStream/stream-chat-react-native/issues/549#issuecomment-796974121 and gradle edit suggested here: https://getstream.io/chat/docs/sdk/reactnative/basics/troubleshooting/#android-5
But still getting following native error when message actions are displayed:
FATAL EXCEPTION: main
Process: com.xxx, PID: 7340
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
Hey guys, unfortunately we are not able to reproduce this issue on our side. Would you please mind setting up an example app and share it with us where we can reproduce this issue and investigate on our side?
Hi, we've had this same issue and it got fixed by downgrading react-native-reanimated to 2.2.4. hope this helps.
Hi there, I have the same issue.
I've removed reactions by adding reactionsEnabled={false} to the Channel component and it works fine now.
Upd: "react-native-reanimated": "^2.3.1", "stream-chat": "^5.4.0", "stream-chat-react-native": "^3.10.2",
Hello, I'm also getting same issue
- stream-chat-react-native: 3.10.2
- react-native : 0.67.2
I've applied patch mentioned here: #549 (comment) and gradle edit suggested here: https://getstream.io/chat/docs/sdk/reactnative/basics/troubleshooting/#android-5
But still getting following native error when message actions are displayed:
FATAL EXCEPTION: main Process: com.xxx, PID: 7340 java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
@ben-wright BlurView dependency has been removed from v4 of SDK. Currently we are still in beta, but you can still use the upgrade helper guide to test it out
- Beta version - https://github.com/GetStream/stream-chat-react-native/releases/tag/v4.0.0-beta.4
- Upgrade Helper - https://getstream.io/chat/docs/sdk/reactnative/4.0.0/basics/upgrading-from-v3/
Will give v4 a test at some point. Thanks @vishalnarkhede.
I can confirm downgrading to react-native-reanimated 2.2.3 also resolved our issue. Thanks
@ao-alexi worked for me, thanks!