How to insert a custom view into the Conversation List #86
elliot-choic
announced in
Conversation List
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Versions
Summary
This guide demonstrates how to insert a custom view between the conversation list header and the list itself. As a basic example, we’ll add a 100-pixel tall transparent space using a custom component. This approach is useful for injecting banners, padding, dividers, or other custom content above the channel list.
Guide & Snippet
iOS
Header
Android
Steps to insert a custom view into the Conversation List screen
1. Create a Custom ViewComponent
Define a reusable ViewComponent that represents the custom content (in this case, an empty transparent view).
2. Override the ConversationListModule to Insert the View
Extend ConversationListModule and override onCreateContentView() to control how the conversation screen layout is composed.
3. Register the Custom Module
Finally, register your custom module so it will be used when launching the conversation list.
JS
Header
// code block
Reference
No response
Screenshots
No response
Beta Was this translation helpful? Give feedback.
All reactions