Skip to content

Commit 8d1b4c2

Browse files
Updated custom-attachments doc
1 parent f2d4665 commit 8d1b4c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CustomAttachments.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Lets build an example of location sharing option in the app:
9797

9898
<img align="right" src="https://user-images.githubusercontent.com/11586388/109648367-d40fa400-7b5a-11eb-8589-d56293b25140.png" alt="IMAGE ALT TEXT HERE" width="320" border="1" style="float: right;" />
9999

100-
- Show a "Share Location" button next to input box. Channel component accepts a prop `InputOptions`, to add some custom buttons next to input box.
100+
- Show a "Share Location" button next to input box. Channel component accepts a prop `InputButtons`, to add some custom buttons next to input box.
101101
- When user presses this button, it should fetch the current location coordinates of user, and send a message on channel as following:
102102
```js
103103
const messageWithLocation = {
@@ -245,7 +245,7 @@ const ShareLocationIcon = (props) => (
245245
);
246246

247247
// UI component to add Share Location button next to input box.
248-
const InputOptions = () => {
248+
const InputButtons = () => {
249249
const {channel: currentChannel} = useChannelContext();
250250

251251
return (
@@ -269,7 +269,7 @@ const ChannelScreen = () => {
269269
channel={channel}
270270
keyboardVerticalOffset={0}
271271
Card={LocationCard}
272-
InputOptions={InputOptions}>
272+
InputButtons={InputButtons}>
273273
<View style={StyleSheet.absoluteFill}>
274274
<MessageList />
275275
<MessageInput />

0 commit comments

Comments
 (0)