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) => {
141
141
}
142
142
return < GroupChannelMessageRenderer { ...props } />
143
143
} }
144
+ // Apply query parameters for message list
145
+ messageListQueryParams = { {
146
+ prevResultLimit : 20 ,
147
+ customTypesFilter : [ 'filter' ]
148
+ } }
144
149
/>
145
150
) ;
146
151
} ;
Original file line number Diff line number Diff line change 1
1
import type { GroupChannelListContextsType , GroupChannelListModule } from '@sendbird/uikit-react-native' ;
2
2
import React , { useContext , useLayoutEffect } from 'react' ;
3
3
4
+ const CustomChannelPreview = ( _ :object ) => < > </ >
5
+
4
6
/**
5
7
* Usage
6
8
* {@link https://sendbird.com/docs/chat/uikit/v3/react-native/key-functions/list-channels#2-usage}
@@ -107,6 +109,15 @@ const CustomGroupChannelListScreen2 = () => {
107
109
< GroupChannelListFragment2
108
110
onPressCreateChannel = { navigateToGroupChannelCreateScreen }
109
111
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
+ } }
110
121
/>
111
122
) ;
112
123
} ;
You can’t perform that action at this time.
0 commit comments