Skip to content

[Fixed in 0.10.1] Exception in native call from JS (flat-list-mvcp on Android) #13

Closed
@BrianLi101

Description

@BrianLi101

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

Screenshot_20210309-151625

This particular issue arises with version 0.0.9 of flat-list-mvcp but does not occur if we switch back to version 0.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 the flat-list-mvcp version from 0.0.5 in the package.json to 0.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 running yarn 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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions