Interface UserListModule<User>
Properties
Header
Header: CommonComponent<{ left?: ReactNode; onPressHeaderLeft: (() => void); onPressHeaderRight: ((selectedUsers) => Promise<void>); right?: ReactNode; shouldActivateHeaderRight?: ((selectedUsers) => boolean); }> Type declaration
Optional
left?: ReactNode
onPressHeaderLeft: (() => void)
onPressHeaderRight: ((selectedUsers) => Promise<void>)
- (selectedUsers): Promise<void>
Returns Promise<void>
Optional
right?: ReactNode
Optional
shouldActivateHeaderRight?: ((selectedUsers) => boolean)
- (selectedUsers): boolean
Returns boolean
List
List: CommonComponent<{ 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[]
Provider
Provider: CommonComponent<{ headerRight: ((selectedUsers) => string); headerTitle: string; }> Type declaration
headerRight: ((selectedUsers) => string)
- (selectedUsers): string
Returns string
headerTitle: string
StatusError
Type declaration
onPressRetry: (() => void)
List empty component *