RNTester: Add missing key attribute in NewAppScreen example (#27180)

Summary:
This pull request adds a missing key attribute to an array of elements in the example for `NewAppScreen`. This results in the "missing key" warning no longer appearing when viewing this example.

## Changelog

[General] [Fixed] - RNTester: Add missing key attribute in NewAppScreen example
Pull Request resolved: https://github.com/facebook/react-native/pull/27180

Test Plan: When viewing this example in RNTester, this warning is no longer printed.

Differential Revision: D18418198

Pulled By: mdvacca

fbshipit-source-id: 8fbe51da7b714e3e94fd2186ea8cc4e3606d9f95
This commit is contained in:
empyrical 2019-11-09 18:56:24 -08:00 коммит произвёл Facebook Github Bot
Родитель a20939f49d
Коммит 75f853dd70
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -50,6 +50,7 @@ exports.examples = [
<View style={{flexDirection: 'row'}}> <View style={{flexDirection: 'row'}}>
{Object.keys(Colors).map(key => ( {Object.keys(Colors).map(key => (
<View <View
key={`color-${key}`}
style={{width: 50, height: 50, backgroundColor: Colors[key]}} style={{width: 50, height: 50, backgroundColor: Colors[key]}}
/> />
))} ))}