@react-native/virtualized-lists 0.75.0-nightly-20240228-252ef19c8 → 0.75.0-nightly-20240229-21171222e

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.
@@ -593,14 +593,16 @@ function ItemWithSeparator(props: ItemWithSeparatorProps): React.Node {
593
593
  {...separatorProps}
594
594
  />
595
595
  );
596
- return leadingSeparator || separator ? (
597
- <View>
598
- {inverted === false ? leadingSeparator : separator}
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
- {inverted === false ? separator : leadingSeparator}
601
- </View>
602
- ) : (
603
- element
604
+ {RenderSeparator ? secondSeparator : null}
605
+ </>
604
606
  );
605
607
  }
606
608
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/virtualized-lists",
3
- "version": "0.75.0-nightly-20240228-252ef19c8",
3
+ "version": "0.75.0-nightly-20240229-21171222e",
4
4
  "description": "Virtualized lists for React Native.",
5
5
  "license": "MIT",
6
6
  "repository": {