mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove FlowFixMe in VirtualizedSectionList
Summary: Changelog: [Internal][Fixed] - Remove FlowFixMe in VirtualizedSectionList Reviewed By: kacieb Differential Revision: D26497027 fbshipit-source-id: 57ea417041df643139068b084d69aaa4efb995fd
This commit is contained in:
committed by
Facebook GitHub Bot
parent
0bb459b149
commit
224757e830
@@ -563,20 +563,17 @@ class ItemWithSeparator extends React.Component<
|
||||
section,
|
||||
separators: this._separators,
|
||||
});
|
||||
const leadingSeparator = LeadingSeparatorComponent && (
|
||||
const leadingSeparator = LeadingSeparatorComponent != null && (
|
||||
<LeadingSeparatorComponent {...this.state.leadingSeparatorProps} />
|
||||
);
|
||||
const separator = SeparatorComponent && (
|
||||
const separator = SeparatorComponent != null && (
|
||||
<SeparatorComponent {...this.state.separatorProps} />
|
||||
);
|
||||
return leadingSeparator || separator ? (
|
||||
/* $FlowFixMe(>=0.89.0 site=react_native_fb) This comment suppresses an
|
||||
* error found when Flow v0.89 was deployed. To see the error, delete
|
||||
* this comment and run Flow. */
|
||||
<View>
|
||||
{!inverted ? leadingSeparator : separator}
|
||||
{inverted === false ? leadingSeparator : separator}
|
||||
{element}
|
||||
{!inverted ? separator : leadingSeparator}
|
||||
{inverted === false ? separator : leadingSeparator}
|
||||
</View>
|
||||
) : (
|
||||
element
|
||||
|
||||
Reference in New Issue
Block a user