-
Notifications
You must be signed in to change notification settings - Fork 33
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
[Fixed in 0.10.1] Exception in native call from JS (flat-list-mvcp on Android) #13
Comments
@BrianLi101 thanks for reporting this. I will take a look - 0.0.9 actually should have fixed it. |
@BrianLi101 could you please share some code around chat components? I want to reproduce this issue on our end!! |
Hi Vishal! We were actually able to make this happen without adding any custom code around chat components. Just using the demo typescript app was enough to replicate this error. If it helps, I can make some screen recordings and send them over. |
@BrianLi101 that will be quite helpful, thanks :) |
I have the same error with "@stream-io/flat-list-mvcp": "^0.0.9", "react-native-bidirectional-infinite-scroll": "^0.3.2", |
@lc3t35 Could you please upgrade to |
no more error with @stream-io/[email protected] ! congrats ! |
Also @BrianLi101 ^^ |
Unfortunately I didn't wait long enough ... I still have the error with @stream-io/[email protected] |
Could you share some code? Want to see how I can reproduce it on my end |
Here you are :
|
Thanks dev for the hard work, it's a great library. I see the same crash on Android, sometimes when updating the data prop of the flat list. |
@lc3t35 @EndlezzCoding Just published a patch |
ok for me 0.10.1, no more crash, thank you @vishalnarkhede |
|
I am facing one issue in react native web ./node_modules/react-native-bidirectional-infinite-scroll/lib/module/BidirectionalFlatList.js:10 |
Flagging this breaking issue so that hopefully the setup docs can be amended or changes can be made to flat-list-mvcp.
My team has been dealing with a bug for the last few days associated with using this package and the wrong version of flat-list-mvcp that results in the following exception when you attempt to open a
<MessageList />
on Android:Exception in native call from JS
This particular issue arises with version
0.0.9
of flat-list-mvcp but does not occur if we switch back to version0.0.5
.To replicate this issue, open the stream-chat-react-native/examples/TypeScriptMessaging example. Before building the project on Android, run the following command
yarn add @stream-io/flat-list-mvcp --save
which will bump theflat-list-mvcp
version from0.0.5
in thepackage.json
to0.0.9
. Click around into a few of the chats and you will be able to consistently reproduce the above error (it may take a few seconds before appearing).This issue has been previously flagged for flat-list-mvcp noted in this issue and was supposed to be fixed by this PR for version
0.0.9
. I will be flagging it again as an issue on flat-list-mvcp but wanted to make sure that something was recorded here to ensure other developers have to spend days going over issues that we've been able to identify.For developers, you can downgrade your version of flat-list-mvcp to
0.0.5
to resolve this issue by runningyarn add @stream-io/[email protected]
.For the GetStream team, this particular issue is not noted in the Setup Docs likely because all of these libraries have been updated very very recently. The docs currently only specify a required version for react-native-reanimated for installation and don't have any restrictions on the version for flat-list-mvcp. I would recommend specifying a version for the time being to be
0.0.5
until these libraries are more stable.P.S. Our team really appreciates all of the work the GetStream team takes out of building incredible chat experiences into our apps! Thank you!
gz#10043
The text was updated successfully, but these errors were encountered: