Properties | Type | Description |
---|---|---|
avatarURL | ImageType | sets image to be shown in avatar in the leading view |
avatarName | string | sets name to be shown in avatar in the leading view if avatarURL is not available |
id | string | number | unique id for the widget |
statusIndicatorColor | string | sets colour of the status indicator |
statusIndicatorIcon | ImageType | sets icon of the status indicator |
title | string | sets the title to display |
SubtitleView | React.FC | sets custom subtitle below the title |
TailView | React.FC | sets the custom tail view |
options | () => CometChatOptions[] | list of option available for the list item |
hideSeparator | boolean | used to hide the divider separating the list items |
listItemStyle | ListItemStyle | used to customise the appearance of this widget |
avatarStyle | AvatarStyle | used to customise the Avatar shown in the leading view |
statusIndicatorStyle | StyleProp<ViewStyle> | used to customise the status indicator |
onPress | Function | callback when user press on list item |
onLongPress | Function | callback when user long press on list item |
headViewContainerStyle | StyleProp<ViewStyle> | Head view contains the Avatar of list item & styles can be customise by this |
tailViewContainerStyle | StyleProp<ViewStyle> | Tail view contains the tail section of list item & styles can be customise by this |
bodyViewContainerStyle | StyleProp<ViewStyle> | Body view contains the tile & subtitle view of list item & styles can be customise by this |
Properties | Type |
---|---|
titleFont | FontStyleInterface |
titleColor | string |
height | number | string |
width | number | string |
backgroundColor | string |
border | BorderStyleInterface |
borderRadius | number |