UNPKG

react-native-chating-ui-kit

Version:

CometChat React Native UI Kit is a collection of custom UI Components designed to build text , chat and calling features in your application. The UI Kit is developed to keep developers in mind and aims to reduce development efforts significantly

112 lines (111 loc) 2.78 kB
import React from 'react'; import { BorderStyleInterface, FontStyleInterface, ImageType } from '../shared'; import { CometChat } from '@cometchat-pro/react-native-chat'; export interface JoinProtectedGroupStyleInterface { closeIconTint?: string; joinIconTint?: string; inputBorderColor?: string; titleStyle?: FontStyleInterface; descriptionTextStyle?: FontStyleInterface; errorTextStyle?: FontStyleInterface; passwordInputTextStyle?: FontStyleInterface; passwordPlaceholderStyle?: FontStyleInterface; width?: string | number; height?: string | number; background?: string; border?: BorderStyleInterface; borderRadius?: number; } export interface CometChatJoinProtectedGroupInterface { /** * * * @type {CometChat.Group} * @description CometChat SDK’s group object */ group: CometChat.Group; /** * * * @type {string} * @description Title of the component */ title?: string; /** * * * @type {ImageType} * @description Icon of the join icon */ joinIcon?: ImageType; /** * * * @type {ImageType} * @description Icon of the close icon */ closeIcon?: ImageType; /** * * * @type {string} * @description Text to appear in the input when no value is set */ passwordPlaceholderText?: string; /** * * * @type {string} * @description Description of the component */ description?: string; /** * * @type {(group: CometChat.Group, password: string) => void} * @description Function triggered when user clicks on the join button */ onJoinClick?: ({ group, password, }: { group: CometChat.Group; password: string; }) => void; /** * * * @type {boolean} * @description Whether the component has error */ hasError?: boolean; /** * * * @type {string} * @description CometChatJoinProtectedGroupInterface */ errorText?: string; /** * * * @description Text to be displayed when an error has occured */ onError?: (error: CometChat.CometChatException) => void; /** * * * @description function triggered when user clicks on the back icon/button */ onBack?: () => void; /** * * * @type {JoinProtectedGroupStyleInterface} * @description Styling properties of the component */ joinProtectedGroupStyle?: JoinProtectedGroupStyleInterface; } export declare const CometChatJoinProtectedGroup: { (props: CometChatJoinProtectedGroupInterface): React.JSX.Element; defaultProps: { hasError: boolean; joinProtectedGroupStyle: {}; }; };