We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e18b80e commit ae7317dCopy full SHA for ae7317d
docs/cookbook.md
@@ -1289,15 +1289,15 @@ class ChannelScreen extends React.Component {
1289
}
1290
1291
render() {
1292
+ const additionalTextInputProps = {
1293
+ onContentSizeChange: (e) => this.updateSize(e.nativeEvent.contentSize.height),
1294
+ style: {height: this.state.height},
1295
+ };
1296
return (
1297
<Chat>
1298
<Channel>
1299
<MessageInput
- additionalTextInputProps={{
- onContentSizeChange: e =>
- this.updateSize(e.nativeEvent.contentSize.height),
- style: {height: this.state.height},
1300
- }}
+ additionalTextInputProps={additionalTextInputProps}
1301
/>
1302
</Channel>
1303
</Chat>
0 commit comments