addReaction static method

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

Add reaction to an activity.

reaction Reaction to add. activityId To add the reaction to.

Implementation

static Future addReaction(String reaction, String activityId) {
  Map<String, dynamic> addReactionBody = {
    'reaction': reaction,
    'activityId': activityId
  };
  return NativeBridge.async(
      'Communities.addReaction', jsonEncode(addReactionBody));
}