diff --git a/packages/react-native/Libraries/Lists/__tests__/__snapshots__/SectionList-test.js.snap b/packages/react-native/Libraries/Lists/__tests__/__snapshots__/SectionList-test.js.snap index dd3dcacc32ef..dcb40ffe0ae8 100644 --- a/packages/react-native/Libraries/Lists/__tests__/__snapshots__/SectionList-test.js.snap +++ b/packages/react-native/Libraries/Lists/__tests__/__snapshots__/SectionList-test.js.snap @@ -264,31 +264,27 @@ exports[`SectionList renders all the bells and whistles 1`] = ` onLayout={[Function]} style={null} > - - - - - + + + - - - - + + - - - - - + + + - - - - + + - - - - - + + + - - - - + + ); - return leadingSeparator || separator ? ( - - {inverted === false ? leadingSeparator : separator} + + const RenderSeparator = leadingSeparator || separator; + const firstSeparator = inverted === false ? leadingSeparator : separator; + const secondSeparator = inverted === false ? separator : leadingSeparator; + + return ( + <> + {RenderSeparator ? firstSeparator : null} {element} - {inverted === false ? separator : leadingSeparator} - - ) : ( - element + {RenderSeparator ? secondSeparator : null} + ); } diff --git a/packages/virtualized-lists/Lists/__tests__/__snapshots__/VirtualizedList-test.js.snap b/packages/virtualized-lists/Lists/__tests__/__snapshots__/VirtualizedList-test.js.snap index 7790f8581bdb..5347a2531a56 100644 --- a/packages/virtualized-lists/Lists/__tests__/__snapshots__/VirtualizedList-test.js.snap +++ b/packages/virtualized-lists/Lists/__tests__/__snapshots__/VirtualizedList-test.js.snap @@ -6618,4 +6618,4 @@ exports[`virtualizes away last focused item if focus changes to a new cell 1`] = -`; +`; \ No newline at end of file diff --git a/packages/virtualized-lists/Lists/__tests__/__snapshots__/VirtualizedSectionList-test.js.snap b/packages/virtualized-lists/Lists/__tests__/__snapshots__/VirtualizedSectionList-test.js.snap index 8a01cb58500c..8de2c76b8382 100644 --- a/packages/virtualized-lists/Lists/__tests__/__snapshots__/VirtualizedSectionList-test.js.snap +++ b/packages/virtualized-lists/Lists/__tests__/__snapshots__/VirtualizedSectionList-test.js.snap @@ -252,80 +252,76 @@ exports[`VirtualizedSectionList handles separators correctly 1`] = ` onLayout={[Function]} style={null} > - - - + - + } + /> - - - + - + } + /> - - - + - + } + /> - - - + - + } + /> - - - + - + } + /> - - - + - + } + /> - - - + - + } + /> - - - + - + } + /> - - - - + + - - - - + + - - - - + + - - - - + +