Icon key prop
This commit is contained in:
parent
32a08e0a74
commit
eaad75a4fa
|
@ -65,12 +65,14 @@ export default class MessageBox extends React.Component {
|
|||
icons.push(<MyIcon
|
||||
style={[styles.actionButtons, { color: '#1D74F5' }]}
|
||||
name='send'
|
||||
key='sendIcon'
|
||||
onPress={() => this.submit(this.component._lastNativeText)}
|
||||
/>);
|
||||
}
|
||||
icons.push(<MyIcon
|
||||
style={[styles.actionButtons, { color: '#2F343D', fontSize: 16 }]}
|
||||
name='plus'
|
||||
key='fileIcon'
|
||||
onPress={() => this.addFile()}
|
||||
/>);
|
||||
return icons;
|
||||
|
|
Loading…
Reference in New Issue