UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

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