Skip to content

Commit ae7317d

Browse files
Fixing cookbook
1 parent e18b80e commit ae7317d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/cookbook.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,15 +1289,15 @@ class ChannelScreen extends React.Component {
12891289
}
12901290

12911291
render() {
1292+
const additionalTextInputProps = {
1293+
onContentSizeChange: (e) => this.updateSize(e.nativeEvent.contentSize.height),
1294+
style: {height: this.state.height},
1295+
};
12921296
return (
12931297
<Chat>
12941298
<Channel>
12951299
<MessageInput
1296-
additionalTextInputProps={{
1297-
onContentSizeChange: e =>
1298-
this.updateSize(e.nativeEvent.contentSize.height),
1299-
style: {height: this.state.height},
1300-
}}
1300+
additionalTextInputProps={additionalTextInputProps}
13011301
/>
13021302
</Channel>
13031303
</Chat>

0 commit comments

Comments
 (0)