mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-28 22:46:52 +08:00
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:
committed by
facebook-github-bot-6
parent
bd3cb3ae1d
commit
e4fe557089
@@ -171,9 +171,20 @@ exports.examples = [
|
||||
}
|
||||
return (
|
||||
<View>
|
||||
{timer}
|
||||
{this.state.showTimer && this._renderTimer()}
|
||||
<UIExplorerButton onPress={this._toggleTimer}>
|
||||
{toggleText}
|
||||
{this.state.showTimer ? 'Unmount timer' : 'Mount new timer'}
|
||||
</UIExplorerButton>
|
||||
</View>
|
||||
);
|
||||
},
|
||||
|
||||
_renderTimer: function() {
|
||||
return (
|
||||
<View>
|
||||
<TimerTester ref="interval" dt={25} type="setInterval" />
|
||||
<UIExplorerButton onPress={() => this.refs.interval.clear() }>
|
||||
Clear interval
|
||||
</UIExplorerButton>
|
||||
</View>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user