UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

21 lines (19 loc) 625 B
import { createFollowEventSubscriber } from './utils'; /** * ```js * import { onFollowRequestDeclined } from '@amityco/ts-sdk-react-native' * const dispose = onFollowRequestDeclined(status => { * // ... * }) * ``` * * Fired when a follow request has been declined * * @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 onFollowRequestDeclined = ( callback: Amity.Listener<Amity.FollowStatus>, ): Amity.Unsubscriber => createFollowEventSubscriber('follow.requestDeclined', callback);