mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
explicit type args in react-native-github
Reviewed By: vjeux Differential Revision: D3342856 fbshipit-source-id: ba5a4d5529fc9d1d1efe98cc175d718c5f044a5b
This commit is contained in:
committed by
Facebook Github Bot 9
parent
caa2baee9d
commit
ac5636dd59
@@ -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 />; }
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user