just show plus icon when textarea is empty (#192)

This commit is contained in:
Saket Kumar 2018-01-15 18:54:15 +05:30 committed by Guilherme Gazzo
parent 50ae73aaf3
commit a0cfe3b8c3
1 changed files with 9 additions and 8 deletions

View File

@ -127,7 +127,7 @@ export default class MessageBox extends React.PureComponent {
accessibilityTraits='button' accessibilityTraits='button'
onPress={() => this.submit(this.state.text)} onPress={() => this.submit(this.state.text)}
/>); />);
} } else {
icons.push(<MyIcon icons.push(<MyIcon
style={[styles.actionButtons, { color: '#2F343D', fontSize: 16 }]} style={[styles.actionButtons, { color: '#2F343D', fontSize: 16 }]}
name='plus' name='plus'
@ -136,6 +136,7 @@ export default class MessageBox extends React.PureComponent {
accessibilityTraits='button' accessibilityTraits='button'
onPress={() => this.addFile()} onPress={() => this.addFile()}
/>); />);
}
return icons; return icons;
} }