mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-06 22:38:37 +08:00
Cleanup: Prefer React.Element over React$?Element
Reviewed By: vjeux Differential Revision: D4013049 fbshipit-source-id: 18a447fdbc584418d6a51770363bcd221e7fb7dc
This commit is contained in:
committed by
Facebook Github Bot
parent
beca25083a
commit
e8198aed8d
@@ -150,26 +150,26 @@ exports.description = 'Native segmented control';
|
||||
exports.examples = [
|
||||
{
|
||||
title: 'Segmented controls can have values',
|
||||
render(): ReactElement<any> { return <BasicSegmentedControlExample />; }
|
||||
render(): React.Element<any> { return <BasicSegmentedControlExample />; }
|
||||
},
|
||||
{
|
||||
title: 'Segmented controls can have a pre-selected value',
|
||||
render(): ReactElement<any> { return <PreSelectedSegmentedControlExample />; }
|
||||
render(): React.Element<any> { return <PreSelectedSegmentedControlExample />; }
|
||||
},
|
||||
{
|
||||
title: 'Segmented controls can be momentary',
|
||||
render(): ReactElement<any> { return <MomentarySegmentedControlExample />; }
|
||||
render(): React.Element<any> { return <MomentarySegmentedControlExample />; }
|
||||
},
|
||||
{
|
||||
title: 'Segmented controls can be disabled',
|
||||
render(): ReactElement<any> { return <DisabledSegmentedControlExample />; }
|
||||
render(): React.Element<any> { return <DisabledSegmentedControlExample />; }
|
||||
},
|
||||
{
|
||||
title: 'Custom colors can be provided',
|
||||
render(): ReactElement<any> { return <ColorSegmentedControlExample />; }
|
||||
render(): React.Element<any> { return <ColorSegmentedControlExample />; }
|
||||
},
|
||||
{
|
||||
title: 'Change events can be detected',
|
||||
render(): ReactElement<any> { return <EventSegmentedControlExample />; }
|
||||
render(): React.Element<any> { return <EventSegmentedControlExample />; }
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user