setReaction static method
Set reaction to an activity.
reaction
Reaction to set.
activityId
To set the reaction to.
Implementation
static Future setReaction(String reaction, String activityId) {
Map<String, dynamic> setReactionBody = {
'reaction': reaction,
'activityId': activityId
};
return NativeBridge.async(
'Communities.setReaction', jsonEncode(setReactionBody));
}