React.Element<any> » React.Element<*>

Reviewed By: yungsters

Differential Revision: D4027388

fbshipit-source-id: 5bc178eab1ab72283622b4b7d418f9fd43ec0792
This commit is contained in:
Jan Kassens
2016-10-15 17:53:24 -07:00
committed by Facebook Github Bot
parent 8e2d4cc680
commit e58d17e68b
62 changed files with 136 additions and 136 deletions

View File

@@ -134,26 +134,26 @@ class EventSwitchExample extends React.Component {
var examples = [
{
title: 'Switches can be set to true or false',
render(): React.Element<any> { return <BasicSwitchExample />; }
render(): React.Element<*> { return <BasicSwitchExample />; }
},
{
title: 'Switches can be disabled',
render(): React.Element<any> { return <DisabledSwitchExample />; }
render(): React.Element<*> { return <DisabledSwitchExample />; }
},
{
title: 'Change events can be detected',
render(): React.Element<any> { return <EventSwitchExample />; }
render(): React.Element<*> { return <EventSwitchExample />; }
},
{
title: 'Switches are controlled components',
render(): React.Element<any> { return <Switch />; }
render(): React.Element<*> { return <Switch />; }
}
];
if (Platform.OS === 'ios') {
examples.push({
title: 'Custom colors can be provided',
render(): React.Element<any> { return <ColorSwitchExample />; }
render(): React.Element<*> { return <ColorSwitchExample />; }
});
}