react-native-activity-feed icon indicating copy to clipboard operation
react-native-activity-feed copied to clipboard

Does stream provide support for threaded comments?

Open LinuiLeaf opened this issue 5 years ago • 1 comments

Tried out the example app but cannot find the reply section as working. Does feed api provide support for threaded comments?.

LinuiLeaf avatar Apr 20 '20 12:04 LinuiLeaf

It is possible to add replies to comments. client.reactions.addChild(kind, reaction, data, options) is how you do it with the client. Activities within a feed should also have access to a props.onAddChildReaction prop that you can pass down to the reaction and call when a comment is added. The kind is comment and the data is something like { text: 'your reply' }. From there I think you can call it on any of the nested comments to add replies to them.

It's not super straight forward, but hope that helps

hedgerh avatar Apr 22 '20 08:04 hedgerh