diff --git a/Libraries/Lists/VirtualizedList.js b/Libraries/Lists/VirtualizedList.js index f3c215f2d7e393..3e5286bd7c53f5 100644 --- a/Libraries/Lists/VirtualizedList.js +++ b/Libraries/Lists/VirtualizedList.js @@ -2044,9 +2044,11 @@ class CellRenderer extends React.Component< : this.props.onLayout; // NOTE: that when this is a sticky header, `onLayout` will get automatically extracted and // called explicitly by `ScrollViewStickyHeader`. - const itemSeparator = ItemSeparatorComponent && ( - - ); + const itemSeparator = React.isValidElement(ItemSeparatorComponent) + ? ItemSeparatorComponent + : ItemSeparatorComponent && ( + + ); const cellStyle = inversionStyle ? horizontal ? [styles.rowReverse, inversionStyle]