From 224757e830f65cf8b00de461f390848bb25c1c71 Mon Sep 17 00:00:00 2001 From: Luna Wei Date: Thu, 18 Feb 2021 13:43:56 -0800 Subject: [PATCH] Remove FlowFixMe in VirtualizedSectionList Summary: Changelog: [Internal][Fixed] - Remove FlowFixMe in VirtualizedSectionList Reviewed By: kacieb Differential Revision: D26497027 fbshipit-source-id: 57ea417041df643139068b084d69aaa4efb995fd --- Libraries/Lists/VirtualizedSectionList.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Libraries/Lists/VirtualizedSectionList.js b/Libraries/Lists/VirtualizedSectionList.js index 89780910f72..af85f52d351 100644 --- a/Libraries/Lists/VirtualizedSectionList.js +++ b/Libraries/Lists/VirtualizedSectionList.js @@ -563,20 +563,17 @@ class ItemWithSeparator extends React.Component< section, separators: this._separators, }); - const leadingSeparator = LeadingSeparatorComponent && ( + const leadingSeparator = LeadingSeparatorComponent != null && ( ); - const separator = SeparatorComponent && ( + const separator = SeparatorComponent != null && ( ); 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. */ - {!inverted ? leadingSeparator : separator} + {inverted === false ? leadingSeparator : separator} {element} - {!inverted ? separator : leadingSeparator} + {inverted === false ? separator : leadingSeparator} ) : ( element