UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

21 lines (19 loc) 600 B
import { createFollowEventSubscriber } from './utils'; /** * ```js * import { onFollowerDeleted } from '@amityco/ts-sdk-react-native' * const dispose = onFollowerDeleted(status => { * // ... * }) * ``` * * Fired when a follower has been deleted * * @param callback The function to call when the event was fired * @returns an {@link Amity.Unsubscriber} function to stop listening * * @category Follow Events */ export const onFollowerDeleted = ( callback: Amity.Listener<Amity.FollowStatus>, ): Amity.Unsubscriber => createFollowEventSubscriber('follow.followerDeleted', callback);