Properties
Header
Header: {
left?: ReactElement<any, string | JSXElementConstructor<any>>;
onPressHeaderLeft: (() => void);
onPressHeaderRight: ((selectedUsers: User[]) => Promise<void>);
right?: ReactElement<any, string | JSXElementConstructor<any>>;
shouldActivateHeaderRight?: ((selectedUsers: User[]) => boolean);
}
Type declaration
-
Optional
left?: ReactElement<any, string | JSXElementConstructor<any>>
-
onPressHeaderLeft: (() => void)
-
onPressHeaderRight: ((selectedUsers: User[]) => Promise<void>)
-
Optional
right?: ReactElement<any, string | JSXElementConstructor<any>>
-
Optional
shouldActivateHeaderRight?: ((selectedUsers: User[]) => boolean)
List
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[];
}
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: 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>>
-
Parameters
-
user: User
-
selectedUsers: User[]
-
setSelectedUsers: Dispatch<SetStateAction<User[]>>
Returns null | ReactElement<any, string | JSXElementConstructor<any>>
-
users: User[]
Provider
Provider: {
headerRight: ((selectedUsers: User[]) => string);
headerTitle: string;
}
Type declaration
-
headerRight: ((selectedUsers: User[]) => string)
-
headerTitle: string
StatusError
StatusError: {
onPressRetry: (() => void);
}
Type declaration
-
onPressRetry: (() => void)
Props for
UserListModule.Header
*