UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

31 lines 1 kB
/** * ```js * import { LiveReactionRepository } from '@amityco/ts-sdk-react-native' * await LiveReactionRepository.createReaction({ * referenceType: 'post', * referenceId: 'postId', * streamId: 'streamId', * reactionName: 'like', * }) * ``` * * * @param referenceId that is target post's ID linked with a livestream * @param referenceType should be 'post' * @param reactionName that is the reaction name * @param streamId stream id * @param roomId room id * @returns a success boolean if the reaction was added * * @category Live Reaction API * @async */ export declare const createReaction: ({ referenceId, referenceType, reactionName, streamId, roomId, }: Pick<Amity.CreateLiveReactionRequest, "referenceType" | "reactionName"> & { referenceId: string; /** * @deprecated streamId is deprecated. Use `roomId` instead. */ streamId?: string | undefined; roomId?: string | undefined; }) => Promise<boolean>; //# sourceMappingURL=createReaction.d.ts.map