mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-20 16:25:31 +08:00
React.Element<any> » React.Element<*>
Reviewed By: yungsters Differential Revision: D4027388 fbshipit-source-id: 5bc178eab1ab72283622b4b7d418f9fd43ec0792
This commit is contained in:
committed by
Facebook Github Bot
parent
8e2d4cc680
commit
e58d17e68b
@@ -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 />; }
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user