Skip to content
Permalink
Browse files

Fix warnings generated by Elements Inspector

Summary:
public

When using dev menu - elements inspector, a yellow box appears
with React warning regarding missing key prop in elements array.
This commit fixes this issue.

Reviewed By: martinbigio

Differential Revision: D2835332

fb-gh-sync-id: 3fcb37dfb6bdcff3788963b36416b7da190b9a84
  • Loading branch information...
frantic authored and facebook-github-bot-0 committed Jan 26, 2016
1 parent 91fe915 commit c1aed7ba41246ff250e7aebac2c5ee2532c14868
Showing with 6 additions and 1 deletion.
  1. +6 −1 Libraries/Inspector/ElementProperties.js
@@ -47,14 +47,19 @@ var ElementProperties = React.createClass({
this.props.hierarchy,
(item, i) => (
<TouchableHighlight
key={'item-' + i}
style={[styles.breadItem, i === selection && styles.selected]}
onPress={() => this.props.setSelection(i)}>
<Text style={styles.breadItemText}>
{item.getName ? item.getName() : 'Unknown'}
</Text>
</TouchableHighlight>
),
() => <Text style={styles.breadSep}>&#9656;</Text>
(i) => (
<Text key={'sep-' + i} style={styles.breadSep}>
&#9656;
</Text>
)
)}
</View>
<View style={styles.row}>

0 comments on commit c1aed7b

Please sign in to comment.
You can’t perform that action at this time.