From bc5cb7cd7933da707c02ff0dd993c607ba7d40b3 Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Tue, 20 Sep 2022 04:13:22 -0700 Subject: [PATCH] Remove usages of listKey Summary: Now that the prop noops, remove the usages of the property. This is the point of no return for the prop. Replaced listKey usage with a combination of `flow check`, regex replace, manual inspection. Changelog: [General][Removed] - Remove usages of listKey Reviewed By: fred2028 Differential Revision: D39589089 fbshipit-source-id: 722ebb7dce038a2709656394b7d736e72f488bb7 --- Libraries/Lists/VirtualizedListProps.js | 8 -------- .../rn-tester/js/examples/FlatList/FlatList-nested.js | 2 -- 2 files changed, 10 deletions(-) diff --git a/Libraries/Lists/VirtualizedListProps.js b/Libraries/Lists/VirtualizedListProps.js index 8410a8d569f21e..97d25861631c8e 100644 --- a/Libraries/Lists/VirtualizedListProps.js +++ b/Libraries/Lists/VirtualizedListProps.js @@ -163,14 +163,6 @@ type OptionalProps = {| * Styling for internal View for ListHeaderComponent */ ListHeaderComponentStyle?: ViewStyleProp, - /** - * A unique identifier for this list. If there are multiple VirtualizedLists at the same level of - * nesting within another VirtualizedList, this key is necessary for virtualization to - * work properly. - * - * @deprecated no longer used/required - */ - listKey?: string, /** * The maximum number of items to render in each incremental render batch. The more rendered at * once, the better the fill rate, but responsiveness may suffer because rendering content may diff --git a/packages/rn-tester/js/examples/FlatList/FlatList-nested.js b/packages/rn-tester/js/examples/FlatList/FlatList-nested.js index f238b24c73379d..b2b1689d2dbd0b 100644 --- a/packages/rn-tester/js/examples/FlatList/FlatList-nested.js +++ b/packages/rn-tester/js/examples/FlatList/FlatList-nested.js @@ -187,7 +187,6 @@ function OuterItemRenderer({ index * items.length * 3 + i)} - listKey={`${index}-col1`} renderItem={p => ( index * items.length * 3 + i + items.length)} - listKey={`${index}-col2`} renderItem={p => (