Status Indicator
CometChatStatusIndicator
is a customised component which indicates whether user is online or offline.
How to integrate CometChatStatusIndicator ?
- Typescript
<CometChatStatusIndicator
backgroundImage={statusIndicatorIcon}
style={{height: 20, width: 20}}
backgroundColor={"green"}
/>
Properties
Properties | Type | Description |
---|---|---|
backgroundImage | ImageType | sets image to be shown |
style | StyleProp<ViewStyle> | used to customise the statusIndicator |
backgroundColor | string | used to set the background colour of statusIndicator view |