This is beta documentation for Stream Chat React Native SDK v9. For the latest stable version, see the latest version (v8)
.
MessageBlocked
Renders a blocked message inside MessageList. This is the default component for the MessageBlocked prop in Channel component.
Best Practices
- Keep blocked-message UI neutral and low-noise.
- Preserve the default uppercase treatment if moderation labels must be visually distinct.
- Prefer theme overrides for styling before replacing the component.
- Keep layout lightweight to avoid extra list row work.
- Pass a stable
styleobject when customizing to reduce re-renders.
Props
message
Current Message Object, used to render blocked text.
Message object.
| Type |
|---|
Message type |
style
Additional style for the blocked message container.
| Type |
|---|
| ViewStyle |