cometchat / cometchat-sample-app-react-native

Voice & Video Calling and Text Chat App for React Native
https://www.cometchat.com
Other
328 stars 158 forks source link

TypeError: Cannot read property 'scrollTo' of null, js engine: hermes #96

Closed jayan2019 closed 3 months ago

jayan2019 commented 3 months ago

Describe the problem

App crashing when keyboard is visible for new user chat

What was the expected behavior?

User can able to chat with new user!

Reproduction

Screen recording:

https://github.com/cometchat/cometchat-sample-app-react-native/assets/46986762/adca4279-845c-4839-8575-b3edc4a8c520

Log : TypeError: Cannot read property 'scrollTo' of null, js engine: hermes

Environment

"react-native": "0.73.6", "@cometchat/chat-sdk-react-native": "^4.0.7", "@cometchat/chat-uikit-react-native": "^4.3.9",

jayan2019 commented 3 months ago

Based on our understanding and as a fast solution, we can able to resolve this issue by adding optional chaining operator in CometChatMessageList.tsx

For example:- Original code: Screenshot 2024-06-04 at 13 31 25

Changed code: Screenshot 2024-06-04 at 13 32 08

Please kindly help us to resolve this issue. Thank you!

cometchat-helpcenter-bot commented 3 months ago

Kritika (CometChat Team) replied:

Hello Jayan,

Thank you for raising your query. Happy to help!

I would like to inform you that I will involve an Implementation Engineer with more product experience in this area. They will take over from here and assist you with this issue. Just so you know – the next team member will have access to all the data we have gathered up to this point and any new information you provide in this message.

Thanks & Regards Kritika Rastogi CometChat

cometchat-helpcenter-bot commented 3 months ago

Afroz Khan (CometChat Team) replied:

Hi Jayan,

Thank you for reporting this issue. We have sent the information to our product engineering team for more investigation. We will be in touch when we have more information.

Regards,

Afroz Khan CometChat

cometchat-helpcenter-bot commented 3 months ago

Afroz Khan (CometChat Team) replied:

Hi Jayan,

I trust this message finds you well.

I'm pleased to inform you that the bug you reported regarding Cannot read property 'scrollTo' of null has been resolved. The fix has been included in our latest release of the React Native UI Kit (4.3.10). Could you please update to the latest version and let us know if you are still facing any issues?

Please refer here for the latest release.

Regards,

Afroz Khan CometChat

jayan2019 commented 3 months ago

This issue is fixed in React Native UI Kit (4.3.10). Thank you so much!

cometchat-helpcenter-bot commented 3 months ago

Afroz Khan (CometChat Team) replied:

Hi Jayan,

You're welcome! We're glad to hear that everything is working fine now. I will proceed to close this ticket as per your confirmation. Please feel free to create a new ticket in case you have any other queries.

I wanted to let you know that you’ll soon receive an email seeking your feedback. Your experience matters to us, so we would love for you to share your thoughts and rate our service. Thank you for your cooperation!

Regards,

Afroz Khan CometChat