React Native

Updating Reactions

LAST EDIT Jan 26 2021

Reactions can be updated by providing the reaction ID parameter. Changes to reactions are propagated to all notified feeds; if the target_feeds list is updated, notifications will be added and removed accordingly.

Parameters

Copied!
nametypedescriptiondefaultoptional
reaction_idstringThe ID of the reaction-
dataobjectReaction data-
target_feedsstringThe list of feeds that should receive a copy of the reaction.-

1
client.reactions.update(reactionId, {"text": "love it!"});
1
client.reactions.update(reaction_id, {"text": "love it!"});
1
client.reactions.update(reaction_id, :data => {:text => "I love it"})
1
$client->reactions()->update($reaction_id, ["text"=> "I love it"]);
1
2
3
4
client.reactions().update(Reaction.builder() 
        .id(reaction.getId()) 
        .extraField("text", "love it!") 
        .build());
1
result, err := client.Reactions().Update(reactionID, map[string]interface{}{"text": "love it!"}, nil)
1
client.update(reactionId: reactionId, extraData: Comment(text: "love it!")) { result in /* ... */ }
1
2
3
4
5
var reactionData = new Dictionary<string, object="">() 
{ 
    { "text", "love it!"} 
}; 
await client.Reactions.Update(reactionId, reactionData);</string,>