mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Cleanup: Prefer React.Element over React$?Element
Reviewed By: vjeux Differential Revision: D4013049 fbshipit-source-id: 18a447fdbc584418d6a51770363bcd221e7fb7dc
This commit is contained in:
1 parent
beca25083a
commit
e8198aed8d
66 files changed
+161
-161
No files matched your search
@@ -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