List
List: {
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: User[];
}
Type declaration
Optional
ListEmptyComponent?: ReactElement<any, string | JSXElementConstructor<any>>
onLoadNext: (() => Promise<void>)
- (): Promise<void>
Returns Promise<void>
Optional
onRefresh?: (() => Promise<void>)
- (): Promise<void>
Returns Promise<void>
Optional
refreshing?: boolean
renderUser: ((user, selectedUsers, setSelectedUsers) => null | ReactElement<any, string | JSXElementConstructor<any>>)
- (user, selectedUsers, setSelectedUsers): null | ReactElement<any, string | JSXElementConstructor<any>>
Parameters
user: User
selectedUsers: User[]
setSelectedUsers: Dispatch<SetStateAction<User[]>>
Returns null | ReactElement<any, string | JSXElementConstructor<any>>
users: User[]
Props for
UserListModule.Header
*