Skip to content

Commit f2be46d

Browse files
committed
test: update docs-validation for new props
1 parent a0f48aa commit f2be46d

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs-validation/4_key-functions/ChattingInAChannel/ChatInAGroupChannel.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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
};

docs-validation/4_key-functions/ListChannels.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import type { GroupChannelListContextsType, GroupChannelListModule } from '@sendbird/uikit-react-native';
22
import 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
};

0 commit comments

Comments
 (0)