Reverted commit D4027388

Reviewed By: yungsters

Differential Revision: D4027388

fbshipit-source-id: 8e3341b6f393ccf432c1a4e22a7cbf422284a06f
This commit is contained in:
Konstantin Raev
2016-10-16 04:11:59 -07:00
committed by Facebook Github Bot
parent dbfd046145
commit 6ea26c01de
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<*> { return <BasicSwitchExample />; }
render(): React.Element<any> { return <BasicSwitchExample />; }
},
{
title: 'Switches can be disabled',
render(): React.Element<*> { return <DisabledSwitchExample />; }
render(): React.Element<any> { return <DisabledSwitchExample />; }
},
{
title: 'Change events can be detected',
render(): React.Element<*> { return <EventSwitchExample />; }
render(): React.Element<any> { return <EventSwitchExample />; }
},
{
title: 'Switches are controlled components',
render(): React.Element<*> { return <Switch />; }
render(): React.Element<any> { return <Switch />; }
}
];
if (Platform.OS === 'ios') {
examples.push({
title: 'Custom colors can be provided',
render(): React.Element<*> { return <ColorSwitchExample />; }
render(): React.Element<any> { return <ColorSwitchExample />; }
});
}