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:
Luna Wei
2021-02-18 13:46:52 -08:00
committed by Facebook GitHub Bot
parent 0bb459b149
commit 224757e830
+4 -7
View File
@@ -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