@react-native/virtualized-lists 0.87.0-rc.0 → 0.88.0-nightly-20260710-102fde7b6
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.
- package/Lists/VirtualizedList.d.ts +12 -26
- package/package.json +2 -2
|
@@ -142,41 +142,34 @@ export class VirtualizedList<ItemT> extends React.Component<
|
|
|
142
142
|
* @see https://reactnative.dev/docs/virtualizedlist#props
|
|
143
143
|
*/
|
|
144
144
|
|
|
145
|
-
export interface VirtualizedListProps<
|
|
146
|
-
|
|
145
|
+
export interface VirtualizedListProps<
|
|
146
|
+
ItemT,
|
|
147
|
+
> extends VirtualizedListWithoutRenderItemProps<ItemT> {
|
|
147
148
|
renderItem: ListRenderItem<ItemT> | null | undefined;
|
|
148
149
|
}
|
|
149
150
|
|
|
150
|
-
export interface VirtualizedListWithoutRenderItemProps<
|
|
151
|
-
|
|
151
|
+
export interface VirtualizedListWithoutRenderItemProps<
|
|
152
|
+
ItemT,
|
|
153
|
+
> extends ScrollViewProps {
|
|
152
154
|
/**
|
|
153
155
|
* Rendered in between each item, but not at the top or bottom
|
|
154
156
|
*/
|
|
155
157
|
ItemSeparatorComponent?:
|
|
156
|
-
|
|
157
|
-
| React.ReactElement
|
|
158
|
-
| null
|
|
159
|
-
| undefined;
|
|
158
|
+
React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
160
159
|
|
|
161
160
|
/**
|
|
162
161
|
* Rendered when the list is empty. Can be a React Component Class, a render function, or
|
|
163
162
|
* a rendered element.
|
|
164
163
|
*/
|
|
165
164
|
ListEmptyComponent?:
|
|
166
|
-
|
|
167
|
-
| React.ReactElement
|
|
168
|
-
| null
|
|
169
|
-
| undefined;
|
|
165
|
+
React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
170
166
|
|
|
171
167
|
/**
|
|
172
168
|
* Rendered at the bottom of all the items. Can be a React Component Class, a render function, or
|
|
173
169
|
* a rendered element.
|
|
174
170
|
*/
|
|
175
171
|
ListFooterComponent?:
|
|
176
|
-
|
|
177
|
-
| React.ReactElement
|
|
178
|
-
| null
|
|
179
|
-
| undefined;
|
|
172
|
+
React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
180
173
|
|
|
181
174
|
/**
|
|
182
175
|
* Styling for internal View for ListFooterComponent
|
|
@@ -188,10 +181,7 @@ export interface VirtualizedListWithoutRenderItemProps<ItemT>
|
|
|
188
181
|
* a rendered element.
|
|
189
182
|
*/
|
|
190
183
|
ListHeaderComponent?:
|
|
191
|
-
|
|
192
|
-
| React.ReactElement
|
|
193
|
-
| null
|
|
194
|
-
| undefined;
|
|
184
|
+
React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
195
185
|
|
|
196
186
|
/**
|
|
197
187
|
* Styling for internal View for ListHeaderComponent
|
|
@@ -316,9 +306,7 @@ export interface VirtualizedListWithoutRenderItemProps<ItemT>
|
|
|
316
306
|
* from the logical start of the list.
|
|
317
307
|
*/
|
|
318
308
|
onStartReached?:
|
|
319
|
-
|
|
320
|
-
| null
|
|
321
|
-
| undefined;
|
|
309
|
+
((info: {distanceFromStart: number}) => void) | null | undefined;
|
|
322
310
|
|
|
323
311
|
/**
|
|
324
312
|
* How far from the start (in units of visible length of the list) the leading edge of the
|
|
@@ -391,7 +379,5 @@ export interface VirtualizedListWithoutRenderItemProps<ItemT>
|
|
|
391
379
|
* notify VirtualizedList of changes within the cell.
|
|
392
380
|
*/
|
|
393
381
|
CellRendererComponent?:
|
|
394
|
-
|
|
395
|
-
| null
|
|
396
|
-
| undefined;
|
|
382
|
+
React.ComponentType<CellRendererProps<ItemT>> | null | undefined;
|
|
397
383
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/virtualized-lists",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.88.0-nightly-20260710-102fde7b6",
|
|
4
4
|
"description": "Virtualized lists for React Native.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@types/react": "^19.2.0",
|
|
55
55
|
"react": "*",
|
|
56
|
-
"react-native": "0.
|
|
56
|
+
"react-native": "0.88.0-nightly-20260710-102fde7b6"
|
|
57
57
|
},
|
|
58
58
|
"peerDependenciesMeta": {
|
|
59
59
|
"@types/react": {
|