UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

17 lines 686 B
/** * ```js * import { onLocalCommunityRoleAdded } from '@amityco/ts-sdk-react-native' * const dispose = onLocalCommunityRoleAdded((community, member) => { * // ... * }) * ``` * * Fired when any {@link Amity.communityUsers} 's role has been added to any {@link Amity.Community} * * @param callback The function to call when the event was fired * @returns an {@link Amity.Unsubscriber} function to stop listening * * @category Community Events */ export declare const onLocalCommunityRoleAdded: (callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber; //# sourceMappingURL=onLocalCommunityRoleAdded.d.ts.map