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