setReaction static method

Future setReaction(
  1. String reaction,
  2. String activityId
)

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));
}