explicit type args in react-native-github

Reviewed By: vjeux

Differential Revision: D3342856

fbshipit-source-id: ba5a4d5529fc9d1d1efe98cc175d718c5f044a5b
This commit is contained in:
Basil Hosmer
2016-05-24 18:28:26 -07:00
committed by Facebook Github Bot 9
parent caa2baee9d
commit ac5636dd59
67 changed files with 149 additions and 153 deletions
+5 -5
View File
@@ -130,26 +130,26 @@ var EventSwitchExample = React.createClass({
var examples = [
{
title: 'Switches can be set to true or false',
render(): ReactElement { return <BasicSwitchExample />; }
render(): ReactElement<any> { return <BasicSwitchExample />; }
},
{
title: 'Switches can be disabled',
render(): ReactElement { return <DisabledSwitchExample />; }
render(): ReactElement<any> { return <DisabledSwitchExample />; }
},
{
title: 'Change events can be detected',
render(): ReactElement { return <EventSwitchExample />; }
render(): ReactElement<any> { return <EventSwitchExample />; }
},
{
title: 'Switches are controlled components',
render(): ReactElement { return <Switch />; }
render(): ReactElement<any> { return <Switch />; }
}
];
if (Platform.OS === 'ios') {
examples.push({
title: 'Custom colors can be provided',
render(): ReactElement { return <ColorSwitchExample />; }
render(): ReactElement<any> { return <ColorSwitchExample />; }
});
}