StreamChatAPI v10 has got new replacement for some API like "MessageTeam". I have read the documentation but it's difficult to find its replacement.
First code:
Second code:
StreamChatAPI v10 has got new replacement for some API like "MessageTeam". I have read the documentation but it's difficult to find its replacement.
First code:
Second code:
With stream-chat-react@10.0.0
, the already deprecated MessageTeam
component was removed from the SDK. Unfortunately, there isn't a drop-in replacement offered by the SDK as we believe MessageUI customizations would be best if handled by the integration projects.
As a starting point, you can take the MessageTeam
implementation from the latest v9.x release and maintain it in your project. You can find it here:
You can follow this guide in order to instruct the SDK to use your own MessageUI implementation:
go to your terminal --> npm uninstall stream chat stream-chat-react
it will delete the current version
Then write --> npm install stream-chat stream-chat-react@9
hit enter
that will definitely solve your problem
As an alternative, you can use MessageSimple from stream-chat-react, this component is almost similar to the MessageTeam.