Fragment
Fragment: {
channel: OpenChannel;
onPressHeaderLeft: (() => void);
onPressHeaderRight: ((channel) => void);
queryCreator?: (() => CustomQueryInterface<Participant | User>);
renderUser?: ((user, selectedUsers, setSelectedUsers) => null | ReactElement<any, string | JSXElementConstructor<any>>);
sortComparator?: ((a, b) => number);
}
Type declaration
channel: OpenChannel
onPressHeaderLeft: (() => void)
onPressHeaderRight: ((channel) => void)
Optional
queryCreator?: (() => CustomQueryInterface<Participant | User>)
- (): CustomQueryInterface<Participant | User>
Returns CustomQueryInterface<Participant | User>
Optional
renderUser?: ((user, selectedUsers, setSelectedUsers) => null | ReactElement<any, string | JSXElementConstructor<any>>)
- (user, selectedUsers, setSelectedUsers): null | ReactElement<any, string | JSXElementConstructor<any>>
Parameters
user: Participant
selectedUsers: Participant[]
setSelectedUsers: Dispatch<SetStateAction<Participant[]>>
Returns null | ReactElement<any, string | JSXElementConstructor<any>>
Optional
sortComparator?: ((a, b) => number)
- (a, b): number
Parameters
a: Participant | User
b: Participant | User
Returns number
Render user component *