This is documentation for Stream Chat React Native SDK v3, which is nolonger actively maintained. For up-to-date documentation, see the latest version (v5).

ChannelPreviewUnreadCount

Component to render unread count on a channel, within the ChannelList component. This is the default component provided to the prop PreviewUnreadCount on the ChannelList component.

Props

maxUnreadCount

Max number to display within the unread notification badge. The value cannot exceed the backend limit of 255.

TypeDefault
number255

unread

Number of unread messages on the channel

Type
number

channel

Instance of Channel from stream-chat package.

© Getstream.io, Inc. All Rights Reserved.