UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

19 lines 673 B
/** * * ```js * import { getReactions } from '@amityco/ts-sdk-react-native'; * * const unsubscribe = getReactions(response => { * reactions = response.data * }); * ``` * * Observe live reactions {@link_Amity.LiveReaction} that have been created in a post linked with a stream * * @param callback the function to call when new data are available * @returns An {@link Amity.Unsubscriber} function to run when willing to stop observing the events * * @category Live Reaction Observable */ export declare const getReactions: (postId: string, callback: Amity.Listener<Amity.LiveReaction[]>) => Amity.Unsubscriber; //# sourceMappingURL=getReactions.d.ts.map