File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
docs-validation/4_key-functions Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,11 @@ const GroupChannelScreen2 = ({ route: { params } }: any) => {
141141 }
142142 return < GroupChannelMessageRenderer { ...props } />
143143 } }
144+ // Apply query parameters for message list
145+ messageListQueryParams = { {
146+ prevResultLimit : 20 ,
147+ customTypesFilter : [ 'filter' ]
148+ } }
144149 />
145150 ) ;
146151} ;
Original file line number Diff line number Diff line change 11import type { GroupChannelListContextsType , GroupChannelListModule } from '@sendbird/uikit-react-native' ;
22import React , { useContext , useLayoutEffect } from 'react' ;
33
4+ const CustomChannelPreview = ( _ :object ) => < > </ >
5+
46/**
57 * Usage
68 * {@link https://sendbird.com/docs/chat/uikit/v3/react-native/key-functions/list-channels#2-usage}
@@ -107,6 +109,15 @@ const CustomGroupChannelListScreen2 = () => {
107109 < GroupChannelListFragment2
108110 onPressCreateChannel = { navigateToGroupChannelCreateScreen }
109111 onPressChannel = { navigateToGroupChannelScreen }
112+ // Render custom channel preview
113+ renderGroupChannelPreview = { ( props ) => {
114+ return < CustomChannelPreview { ...props } /> ;
115+ } }
116+ // Apply query parameters for channel list
117+ channelListQueryParams = { {
118+ includeEmpty : true ,
119+ includeFrozen : false ,
120+ } }
110121 />
111122 ) ;
112123} ;
You can’t perform that action at this time.
0 commit comments