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