UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

20 lines (18 loc) 605 B
import { createPostEventSubscriber } from './utils'; /** * ```js * import { onPostUnflagged } from '@amityco/ts-sdk-react-native' * const dispose = onPostUnflagged(post => { * // ... * }) * ``` * * Fired when a flag has been removed from a {@link Amity.InternalPost} * * @param callback The function to call when the event was fired * @returns an {@link Amity.Unsubscriber} function to stop listening * * @category Post Events */ export const onPostUnflagged = (callback: Amity.Listener<Amity.InternalPost>): Amity.Unsubscriber => createPostEventSubscriber('post.unflagged', callback);