Type Parameters

  • User

Hierarchy

  • UserListProps

Properties

Header: {
    left?: ReactElement<any, string | JSXElementConstructor<any>>;
    onPressHeaderLeft: (() => void);
    onPressHeaderRight: ((selectedUsers: User[]) => Promise<void>);
    right?: ReactElement<any, string | JSXElementConstructor<any>>;
    shouldActivateHeaderRight?: ((selectedUsers: User[]) => boolean);
}

Props for UserListModule.Header *

Type declaration

  • Optional left?: ReactElement<any, string | JSXElementConstructor<any>>
  • onPressHeaderLeft: (() => void)
      • (): void
      • Returns void

  • onPressHeaderRight: ((selectedUsers: User[]) => Promise<void>)
      • (selectedUsers: User[]): Promise<void>
      • Parameters

        • selectedUsers: User[]

        Returns Promise<void>

  • Optional right?: ReactElement<any, string | JSXElementConstructor<any>>
  • Optional shouldActivateHeaderRight?: ((selectedUsers: User[]) => boolean)
      • (selectedUsers: User[]): boolean
      • Parameters

        • selectedUsers: User[]

        Returns boolean

List: {
    ListEmptyComponent?: ReactElement<any, string | JSXElementConstructor<any>>;
    onLoadNext: (() => Promise<void>);
    onRefresh?: (() => Promise<void>);
    refreshing?: boolean;
    renderUser: ((user: User, selectedUsers: User[], setSelectedUsers: Dispatch<SetStateAction<User[]>>) => null | ReactElement<any, string | JSXElementConstructor<any>>);
    users: User[];
}

Props for UserListModule.List *

Type declaration

  • 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: User, selectedUsers: User[], setSelectedUsers: Dispatch<SetStateAction<User[]>>) => null | ReactElement<any, string | JSXElementConstructor<any>>)
      • (user: User, selectedUsers: User[], setSelectedUsers: Dispatch<SetStateAction<User[]>>): null | ReactElement<any, string | JSXElementConstructor<any>>
      • Render user component *

        Parameters

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

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

  • users: User[]

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

Provider: {
    headerRight: ((selectedUsers: User[]) => string);
    headerTitle: string;
}

Props for UserListModule.Provider *

Type declaration

  • headerRight: ((selectedUsers: User[]) => string)
      • (selectedUsers: User[]): string
      • Parameters

        • selectedUsers: User[]

        Returns string

  • headerTitle: string
StatusError: {
    onPressRetry: (() => void);
}

Type declaration

  • onPressRetry: (() => void)
      • (): void
      • Returns void

Generated using TypeDoc