@react-native/virtualized-lists 0.74.1 → 0.75.0-main
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -203,8 +203,8 @@ export default class CellRenderer<ItemT> extends React.Component<
|
|
|
203
203
|
? [styles.rowReverse, inversionStyle]
|
|
204
204
|
: [styles.columnReverse, inversionStyle]
|
|
205
205
|
: horizontal
|
|
206
|
-
|
|
207
|
-
|
|
206
|
+
? [styles.row, inversionStyle]
|
|
207
|
+
: inversionStyle;
|
|
208
208
|
const result = !CellRendererComponent ? (
|
|
209
209
|
<View
|
|
210
210
|
style={cellStyle}
|
|
@@ -593,14 +593,16 @@ function ItemWithSeparator(props: ItemWithSeparatorProps): React.Node {
|
|
|
593
593
|
{...separatorProps}
|
|
594
594
|
/>
|
|
595
595
|
);
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
596
|
+
const RenderSeparator = leadingSeparator || separator;
|
|
597
|
+
const firstSeparator = inverted === false ? leadingSeparator : separator;
|
|
598
|
+
const secondSeparator = inverted === false ? separator : leadingSeparator;
|
|
599
|
+
|
|
600
|
+
return (
|
|
601
|
+
<>
|
|
602
|
+
{RenderSeparator ? firstSeparator : null}
|
|
599
603
|
{element}
|
|
600
|
-
{
|
|
601
|
-
|
|
602
|
-
) : (
|
|
603
|
-
element
|
|
604
|
+
{RenderSeparator ? secondSeparator : null}
|
|
605
|
+
</>
|
|
604
606
|
);
|
|
605
607
|
}
|
|
606
608
|
|