UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

20 lines (18 loc) 607 B
import { createCommunityEventSubscriber } from './utils'; /** * ```js * import { onCommunityUpdated } from '@amityco/ts-sdk-react-native' * const dispose = onCommunityUpdated(community => { * // ... * }) * ``` * * Fired when a {@link Amity.Community} has been updated * * @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 onCommunityUpdated = (callback: Amity.Listener<Amity.InternalCommunity>) => createCommunityEventSubscriber('community.updated', callback);