Interface GroupChannelCreateProps<User>
Properties
Fragment
Fragment: { channelType?: GroupChannelType; onBeforeCreateChannel?: ((params,
users) => GroupChannelCreateParams | Promise<GroupChannelCreateParams>); onCreateChannel: ((channel) => void); onPressHeaderLeft: (() => void); queryCreator?: (() => CustomQueryInterface<User>); renderUser?: ((user,
selectedUsers,
setSelectedUsers) => null | ReactElement<any, string | JSXElementConstructor<any>>); sortComparator?: ((a,
b) => number); } Type declaration
Optional
onBeforeCreateChannel?: ((params, users) => GroupChannelCreateParams | Promise<GroupChannelCreateParams>)
- (params, users): GroupChannelCreateParams | Promise<GroupChannelCreateParams>
Parameters
params: GroupChannelCreateParams
users: User[]
Returns GroupChannelCreateParams | Promise<GroupChannelCreateParams>
onCreateChannel: ((channel) => void)
- (channel): void
Returns void
onPressHeaderLeft: (() => void)
Optional
queryCreator?: (() => CustomQueryInterface<User>)
- (): CustomQueryInterface<User>
Returns CustomQueryInterface<User>
Optional
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>>
Optional
sortComparator?: ((a, b) => number)
- (a, b): number
Returns number
Render user component *