UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

20 lines (18 loc) 607 B
import { createCommunityEventSubscriber } from './utils'; /** * ```js * import { onCommunityDeleted } from '@amityco/ts-sdk-react-native' * const dispose = onCommunityDeleted(community => { * // ... * }) * ``` * * Fired when a {@link Amity.Community} has been deleted * * @param callback The function to call when the event was fired * @returns an {@link Amity.Unsubscriber} function to stop listening * * @category Community Events */ export const onCommunityDeleted = (callback: Amity.Listener<Amity.InternalCommunity>) => createCommunityEventSubscriber('community.deleted', callback);