From a0cfe3b8c35f9fbbe2adb2d162808a8fa15ae14f Mon Sep 17 00:00:00 2001 From: Saket Kumar <15ucs114@lnmiit.ac.in> Date: Mon, 15 Jan 2018 18:54:15 +0530 Subject: [PATCH] just show plus icon when textarea is empty (#192) --- app/containers/MessageBox/index.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app/containers/MessageBox/index.js b/app/containers/MessageBox/index.js index 70cfb5da4..4319fd1dd 100644 --- a/app/containers/MessageBox/index.js +++ b/app/containers/MessageBox/index.js @@ -127,15 +127,16 @@ export default class MessageBox extends React.PureComponent { accessibilityTraits='button' onPress={() => this.submit(this.state.text)} />); + } else { + icons.push( this.addFile()} + />); } - icons.push( this.addFile()} - />); return icons; }