@sendbird/uikit-react-native
Version:
Sendbird UIKit for React Native: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.
20 lines (19 loc) • 1.11 kB
TypeScript
import React from 'react';
import { SendbirdGroupChannel, SendbirdGroupChannelCreateParams, SendbirdMember, SendbirdReactedUserInfo, SendbirdUser } from '@sendbird/uikit-utils';
type OnCreateChannel = (channel: SendbirdGroupChannel) => void;
type OnBeforeCreateChannel = (channelParams: SendbirdGroupChannelCreateParams, users: SendbirdUser[] | SendbirdMember[] | SendbirdReactedUserInfo[]) => SendbirdGroupChannelCreateParams | Promise<SendbirdGroupChannelCreateParams>;
type ShowOptions = {
hideMessageButton?: boolean;
};
export type UserProfileContextType = {
show(user: SendbirdUser | SendbirdMember | SendbirdReactedUserInfo, options?: ShowOptions): void;
hide(): void;
};
type Props = React.PropsWithChildren<{
onCreateChannel?: OnCreateChannel;
onBeforeCreateChannel?: OnBeforeCreateChannel;
statusBarTranslucent?: boolean;
}>;
export declare const UserProfileContext: React.Context<UserProfileContextType | null>;
export declare const UserProfileProvider: ({ children, onCreateChannel, onBeforeCreateChannel, statusBarTranslucent, }: Props) => React.JSX.Element;
export {};