UNPKG

@cometchat/chat-uikit-react-native

Version:

Ready-to-use Chat UI Components for React Native

48 lines (45 loc) 923 B
export class SuggestionItem { /** * Unique identifier of item */ id!: string; /** * Name to be displayed in the list */ name!: string; /** * Avatar Icon Url */ leadingIconUrl?: string; /** * Hide leading icon * @default true */ hideLeadingIcon?: boolean = true; /** * Presence Indicator */ status?: 'online' | 'offline'; /** * Name to be displayed in the composer */ promptText!: string; /** * underlying text * @example <@uid:superhero1> */ underlyingText!: string; /** * set a tracking character. * @description string length has be 1. * @example '@' | '#' etc. */ trackingCharacter!: string; /** * extra data to be passed in JSON format */ data?: JSON; constructor(props: SuggestionItem) { Object.assign(this, props); } }