just show plus icon when textarea is empty (#192)
This commit is contained in:
parent
50ae73aaf3
commit
a0cfe3b8c3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue