mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-15 01:22:29 +08:00
Reverted commit D4027388
Reviewed By: yungsters Differential Revision: D4027388 fbshipit-source-id: 8e3341b6f393ccf432c1a4e22a7cbf422284a06f
This commit is contained in:
committed by
Facebook Github Bot
parent
dbfd046145
commit
6ea26c01de
@@ -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 />; }
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user