Fix all warnings for missing keys.

Summary:
I had to go through each component while debugging for another issue and decided to clean these warnings up along the way.
Closes https://github.com/facebook/react-native/pull/4653

Reviewed By: svcscm

Differential Revision: D2752740

Pulled By: androidtrunkagent

fb-gh-sync-id: 94da8ad693cae04e353f33f540c15214f6f3e7d8
This commit is contained in:
Christopher Dro
2015-12-11 21:21:02 -08:00
committed by facebook-github-bot-6
parent bd3cb3ae1d
commit e4fe557089
7 changed files with 23 additions and 11 deletions

View File

@@ -158,7 +158,7 @@ class TokenizedTextExample extends React.Component {
//highlight hashtags
parts = parts.map((text) => {
if (/^#/.test(text)) {
return <Text style={styles.hashtag}>{text}</Text>;
return <Text key={text} style={styles.hashtag}>{text}</Text>;
} else {
return text;
}