Skip to content

Commit

Permalink
RNTester: Add missing key attribute in NewAppScreen example (#27180)
Browse files Browse the repository at this point in the history
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: #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
  • Loading branch information
empyrical authored and facebook-github-bot committed Nov 10, 2019
1 parent a20939f commit 75f853d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions RNTester/js/examples/NewAppScreen/NewAppScreenExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ exports.examples = [
<View style={{flexDirection: 'row'}}>
{Object.keys(Colors).map(key => (
<View
key={`color-${key}`}
style={{width: 50, height: 50, backgroundColor: Colors[key]}}
/>
))}
Expand Down

0 comments on commit 75f853d

Please sign in to comment.