• Type Parameters

    • T extends UserStruct

    Parameters

    • __namedParameters: {
          ListEmptyComponent?: ReactElement<any, string | JSXElementConstructor<any>>;
          onLoadNext: (() => Promise<void>);
          onRefresh?: (() => Promise<void>);
          refreshing?: boolean;
          renderUser: ((user, selectedUsers, setSelectedUsers) => null | ReactElement<any, string | JSXElementConstructor<any>>);
          users: T[];
      }
      • Optional ListEmptyComponent?: ReactElement<any, string | JSXElementConstructor<any>>

        List empty component *

      • onLoadNext: (() => Promise<void>)
          • (): Promise<void>
          • Load next user list *

            Returns Promise<void>

      • Optional onRefresh?: (() => Promise<void>)
          • (): Promise<void>
          • Refresh user list *

            Returns Promise<void>

      • Optional refreshing?: boolean

        Refreshing state *

      • renderUser: ((user, selectedUsers, setSelectedUsers) => null | ReactElement<any, string | JSXElementConstructor<any>>)
          • (user, selectedUsers, setSelectedUsers): null | ReactElement<any, string | JSXElementConstructor<any>>
          • Render user component *

            Parameters

            • user: T
            • selectedUsers: T[]
            • setSelectedUsers: Dispatch<SetStateAction<T[]>>

            Returns null | ReactElement<any, string | JSXElementConstructor<any>>

      • users: T[]

        User list from SendbirdChat SDK or Custom query Fragment.queryCreator *

    Returns Element

Generated using TypeDoc