You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -21,6 +22,7 @@ Find out more about Sendbird UIKit for React at [UIKit for React doc](https://se
21
22
<br />
22
23
23
24
## UIKit components and ways to customize
25
+
24
26
These samples are here to help you better understand UIKit for React by going over the core components and ways to customize. On each core component sample, there is an attached CodeSandbox link in which you can see the sample codes and alter them to see how the changes are rendered.
25
27
26
28
<br />
@@ -41,12 +43,12 @@ The minimum requirements for UIKit for React are:
41
43
42
44
### Implement Chat with App component
43
45
44
-
The `App` component is a collection of all UIKit components you need to implement chat. This is included in all core component samples, so be sure to set your own APP_ID, USER_ID, and NICKNAME in `const.js` in each to customize your sample. On the [CodeSandbox](https://codesandbox.io/s/1-1-using-sendbird-app-9l4d4b) link, you will see that the props of the `App` component refer to use the values of the correspondings of `const.js` for initialization.
46
+
The `App` component is a collection of all UIKit components you need to implement chat. This is included in all core component samples, so be sure to set your own APP_ID, USER_ID, and NICKNAME in `const.js` in each to customize your sample. On the [CodeSandbox](https://codesandbox.io/s/1-1-using-sendbird-app-9l4d4b) link, you will see that the props of the `App` component refer to use the values of the correspondings of `const.js` for initialization.
45
47
46
48
Try setting your own by downloading the Sendbird sample.
47
49
48
50
```javascript
49
-
importSendbirdAppfrom'@sendbird/uikit-react/App'
51
+
importSendbirdAppfrom'@sendbird/uikit-react/App';
50
52
```
51
53
52
54
### Import components to customize UIKit
@@ -107,18 +109,18 @@ Try your [message list params on CodeSandbox](https://codesandbox.io/s/2-2-custo
107
109
```javascript
108
110
// Pass arguments in JSON data input format to the query instance.
109
111
const [queries] =useState({
110
-
// use object json type input, don't create sendbird query instance
@@ -141,10 +143,10 @@ In order to complete an operation you intend to carry out with each function, yo
141
143
142
144
```javascript
143
145
consthandleUpdateUserMessage= (text) => {
144
-
constuserMessageParams= {};
145
-
userMessageParams.message= text;
146
-
return userMessageParams;
147
-
}
146
+
constuserMessageParams= {};
147
+
userMessageParams.message= text;
148
+
return userMessageParams;
149
+
};
148
150
```
149
151
150
152
Find out more about `UserMessageParams` and `FileMessageParams` on the [API reference of Sendbird Chat SDK for JavaScript](https://sendbird.com/docs/chat/v4/javascript/ref/interfaces/_sendbird_chat_message.UserMessageCreateParams.html).
@@ -171,7 +173,6 @@ The **renderMessageInput** is a `ReactElement` prop in the **Channel** component
171
173
172
174
Try your [message input on CodeSandbox](https://codesandbox.io/s/2-5-customizing-messageinput-forked-or4lm8)
173
175
174
-
175
176
```javascript
176
177
<Channel
177
178
renderMessageInput={() => (
@@ -234,7 +235,7 @@ Try your [channel list query item on CodeSandbox](https://codesandbox.io/s/3-2-c
You can get an array of **selectedUsers** in a function argument. In order to complete an operation you intend to carry out with the function, you should return a `GroupchannelParams` object after specifying its properties.
259
+
260
+
You can get an array of **selectedUsers** in a function argument. In order to complete an operation you intend to carry out with the function, you should return an instance of `GroupChannelCreateParams` object after specifying its properties.
Find out more about `GroupChannelParams` on the [API reference of Sendbird Chat SDK for JavaScript](https://sendbird.com/docs/chat/v4/javascript/ref/interfaces/_sendbird_chat_groupChannel.GroupChannelCreateParams.html).
276
+
Find out more about `GroupChannelCreateParams` on the [API reference of Sendbird Chat SDK for JavaScript](https://sendbird.com/docs/chat/v4/javascript/ref/interfaces/_sendbird_chat_groupChannel.GroupChannelCreateParams.html).
0 commit comments