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
This commit is contained in:
Родитель
408471f041
Коммит
bc5cb7cd79
|
@ -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
|
||||
|
|
|
@ -187,7 +187,6 @@ function OuterItemRenderer({
|
|||
<View style={styles.col}>
|
||||
<FlatList
|
||||
data={items.map(i => index * items.length * 3 + i)}
|
||||
listKey={`${index}-col1`}
|
||||
renderItem={p => (
|
||||
<InnerItemRenderer
|
||||
item={p.item}
|
||||
|
@ -203,7 +202,6 @@ function OuterItemRenderer({
|
|||
<View style={styles.col}>
|
||||
<FlatList
|
||||
data={items.map(i => index * items.length * 3 + i + items.length)}
|
||||
listKey={`${index}-col2`}
|
||||
renderItem={p => (
|
||||
<InnerItemRenderer
|
||||
item={p.item}
|
||||
|
|
Загрузка…
Ссылка в новой задаче