From 8b8cf6234a8eafc78d65a97a7a28b10da7e820fb Mon Sep 17 00:00:00 2001 From: enahum Date: Thu, 8 Jun 2017 22:25:33 -0400 Subject: [PATCH] RN-161 Expand input textbox appropiately for multi-line (#613) --- app/components/post_textbox/post_textbox.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/app/components/post_textbox/post_textbox.js b/app/components/post_textbox/post_textbox.js index dd2e9d4fc..035fde9a3 100644 --- a/app/components/post_textbox/post_textbox.js +++ b/app/components/post_textbox/post_textbox.js @@ -117,8 +117,8 @@ class PostTextbox extends PureComponent { }; handleContentSizeChange = (h) => { - let height = h; - if (height < INITIAL_HEIGHT) { + let height = h + 5; + if (height < INITIAL_HEIGHT || !this.state.canSend) { height = INITIAL_HEIGHT; } this.setState({ @@ -524,19 +524,10 @@ const getStyleSheet = makeStyleSheetFromTheme((theme) => { sendButton: { backgroundColor: theme.buttonBg, borderRadius: 18, + marginBottom: 3, marginRight: 5, height: 28, width: 28, - ...Platform.select({ - ios: { - marginBottom: 3 - }, - android: { - height: 29, - width: 29, - marginBottom: 5 - } - }), alignItems: 'center', justifyContent: 'center', paddingLeft: 2