mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-06 17:34:07 +08:00
Add key for items in TextInputExample of RNTester (#23900)
Summary: We added the key at wrong places, so let's fix it. CC. cpojer <img width="365" alt="image" src="https://user-images.githubusercontent.com/5061845/54288501-894d9800-45e2-11e9-9a74-8bebf366aa04.png"> [iOS] [Fixed] - Add key for items in TextInputExample of RNTester Pull Request resolved: https://github.com/facebook/react-native/pull/23900 Differential Revision: D14477284 Pulled By: cpojer fbshipit-source-id: 69cc46ea57aaeb652df6cdd831e6d0058fa26b24
This commit is contained in:
committed by
Facebook Github Bot
parent
d0d8c8b651
commit
25f7657cf6
@@ -822,9 +822,8 @@ exports.examples = [
|
||||
];
|
||||
const examples = clearButtonModes.map(mode => {
|
||||
return (
|
||||
<WithLabel label={mode}>
|
||||
<WithLabel key={mode} label={mode}>
|
||||
<TextInput
|
||||
key={mode}
|
||||
style={styles.default}
|
||||
clearButtonMode={mode}
|
||||
defaultValue={mode}
|
||||
|
||||
Reference in New Issue
Block a user