@react-native/virtualized-lists 0.88.0-nightly-20260721-7bb31ff7b → 0.88.0-nightly-20260723-e46189e1e

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/virtualized-lists",
3
- "version": "0.88.0-nightly-20260721-7bb31ff7b",
3
+ "version": "0.88.0-nightly-20260723-e46189e1e",
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.88.0-nightly-20260721-7bb31ff7b"
56
+ "react-native": "0.88.0-nightly-20260723-e46189e1e"
57
57
  },
58
58
  "peerDependenciesMeta": {
59
59
  "@types/react": {
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<f623b47d93e1e0fe9b2f92b3e51741b1>>
7
+ * @generated SignedSource<<c76880aa7562d471cb557a0a8849be0d>>
8
8
  *
9
9
  * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
10
  * Original file: packages/virtualized-lists/Lists/ListMetricsAggregator.js
@@ -42,8 +42,8 @@ export type CellMetricProps = {
42
42
  data: VirtualizedListProps["data"];
43
43
  getItemCount: VirtualizedListProps["getItemCount"];
44
44
  getItem: VirtualizedListProps["getItem"];
45
- getItemLayout?: VirtualizedListProps["getItemLayout"];
46
- keyExtractor?: VirtualizedListProps["keyExtractor"];
45
+ getItemLayout?: VirtualizedListProps["getItemLayout"] | undefined;
46
+ keyExtractor?: VirtualizedListProps["keyExtractor"] | undefined;
47
47
  };
48
48
  /**
49
49
  * Provides an interface to query information about the metrics of a list and its cells.
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<67bb8ff601be8116579df670a6e3ea35>>
7
+ * @generated SignedSource<<d0a49796d33289a4979c1245279aea93>>
8
8
  *
9
9
  * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
10
  * Original file: packages/virtualized-lists/Lists/ViewabilityHelper.js
@@ -17,7 +17,7 @@ export type ViewToken = {
17
17
  key: string;
18
18
  index: number | undefined;
19
19
  isViewable: boolean;
20
- section?: any;
20
+ section?: any | undefined;
21
21
  };
22
22
  export type ViewabilityConfigCallbackPair = {
23
23
  viewabilityConfig: ViewabilityConfig;
@@ -33,24 +33,24 @@ export type ViewabilityConfig = Readonly<{
33
33
  * viewability callback will be fired. A high number means that scrolling through content without
34
34
  * stopping will not mark the content as viewable.
35
35
  */
36
- minimumViewTime?: number;
36
+ minimumViewTime?: number | undefined;
37
37
  /**
38
38
  * Percent of viewport that must be covered for a partially occluded item to count as
39
39
  * "viewable", 0-100. Fully visible items are always considered viewable. A value of 0 means
40
40
  * that a single pixel in the viewport makes the item viewable, and a value of 100 means that
41
41
  * an item must be either entirely visible or cover the entire viewport to count as viewable.
42
42
  */
43
- viewAreaCoveragePercentThreshold?: number;
43
+ viewAreaCoveragePercentThreshold?: number | undefined;
44
44
  /**
45
45
  * Similar to `viewAreaPercentThreshold`, but considers the percent of the item that is visible,
46
46
  * rather than the fraction of the viewable area it covers.
47
47
  */
48
- itemVisiblePercentThreshold?: number;
48
+ itemVisiblePercentThreshold?: number | undefined;
49
49
  /**
50
50
  * Nothing is considered viewable until the user scrolls or `recordInteraction` is called after
51
51
  * render.
52
52
  */
53
- waitForInteraction?: boolean;
53
+ waitForInteraction?: boolean | undefined;
54
54
  }>;
55
55
  /**
56
56
  * A Utility class for calculating viewable items based on current metrics like scroll position and
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<a562ddf8afa2306919e86f1c782188e8>>
7
+ * @generated SignedSource<<a0dbf0b1afa789922df9ff185e535bbf>>
8
8
  *
9
9
  * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
10
  * Original file: packages/virtualized-lists/Lists/VirtualizedList.js
@@ -64,14 +64,14 @@ declare class VirtualizedList extends StateSafePureComponent<VirtualizedListProp
64
64
  scrollToIndex(params: {
65
65
  animated?: boolean | undefined;
66
66
  index: number;
67
- viewOffset?: number;
68
- viewPosition?: number;
67
+ viewOffset?: number | undefined;
68
+ viewPosition?: number | undefined;
69
69
  }): any;
70
70
  scrollToItem(params: {
71
71
  animated?: boolean | undefined;
72
72
  item: Item;
73
- viewOffset?: number;
74
- viewPosition?: number;
73
+ viewOffset?: number | undefined;
74
+ viewPosition?: number | undefined;
75
75
  }): void;
76
76
  /**
77
77
  * Scroll to a specific content pixel offset in the list.
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<a23b061213c8c0234da27ab93021b537>>
7
+ * @generated SignedSource<<9fba538560068d6741535fc15c2d2a43>>
8
8
  *
9
9
  * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
10
  * Original file: packages/virtualized-lists/Lists/VirtualizedListProps.js
@@ -29,8 +29,8 @@ export type CellRendererProps<ItemT> = Readonly<{
29
29
  children: React.ReactNode;
30
30
  index: number;
31
31
  item: ItemT;
32
- onFocusCapture?: (event: FocusEvent) => void;
33
- onLayout?: (event: LayoutChangeEvent) => void;
32
+ onFocusCapture?: ((event: FocusEvent) => void) | undefined;
33
+ onLayout?: ((event: LayoutChangeEvent) => void) | undefined;
34
34
  style: StyleProp<ViewStyle>;
35
35
  }>;
36
36
  export type ListRenderItem<ItemT> = (info: ListRenderItemInfo<ItemT>) => React.ReactNode;
@@ -39,7 +39,7 @@ type RequiredVirtualizedListProps = {
39
39
  * The default accessor functions assume this is an Array<{key: string} | {id: string}> but you can override
40
40
  * getItem, getItemCount, and keyExtractor to handle any type of index-based data.
41
41
  */
42
- data?: any;
42
+ data?: any | undefined;
43
43
  /**
44
44
  * A generic accessor for extracting an item from any sort of data blob.
45
45
  */
@@ -67,12 +67,12 @@ type OptionalVirtualizedListProps = {
67
67
  * any of your `renderItem`, Header, Footer, etc. functions depend on anything outside of the
68
68
  * `data` prop, stick it here and treat it immutably.
69
69
  */
70
- extraData?: any;
71
- getItemLayout?: (data: any, index: number) => {
70
+ extraData?: any | undefined;
71
+ getItemLayout?: ((data: any, index: number) => {
72
72
  length: number;
73
73
  offset: number;
74
74
  index: number;
75
- };
75
+ }) | undefined;
76
76
  horizontal?: boolean | undefined;
77
77
  /**
78
78
  * How many items to render in the initial batch. This should be enough to fill the screen but not
@@ -146,7 +146,7 @@ type OptionalVirtualizedListProps = {
146
146
  /**
147
147
  * Styling for internal View for ListFooterComponent
148
148
  */
149
- ListFooterComponentStyle?: StyleProp<ViewStyle>;
149
+ ListFooterComponentStyle?: StyleProp<ViewStyle> | undefined;
150
150
  /**
151
151
  * Rendered at the top of all the items. Can be a React Component Class, a render function, or
152
152
  * a rendered element.
@@ -155,7 +155,7 @@ type OptionalVirtualizedListProps = {
155
155
  /**
156
156
  * Styling for internal View for ListHeaderComponent
157
157
  */
158
- ListHeaderComponentStyle?: StyleProp<ViewStyle>;
158
+ ListHeaderComponentStyle?: StyleProp<ViewStyle> | undefined;
159
159
  /**
160
160
  * The maximum number of items to render in each incremental render batch. The more rendered at
161
161
  * once, the better the fill rate, but responsiveness may suffer because rendering content may
@@ -217,7 +217,7 @@ type OptionalVirtualizedListProps = {
217
217
  /**
218
218
  * Set this when offset is needed for the loading indicator to show correctly.
219
219
  */
220
- progressViewOffset?: number;
220
+ progressViewOffset?: number | undefined;
221
221
  /**
222
222
  * A custom refresh control element. When set, it overrides the default
223
223
  * <RefreshControl> component built internally. The onRefresh and refreshing
@@ -233,11 +233,11 @@ type OptionalVirtualizedListProps = {
233
233
  *
234
234
  * This may improve scroll performance for large lists.
235
235
  */
236
- removeClippedSubviews?: boolean;
236
+ removeClippedSubviews?: boolean | undefined;
237
237
  /**
238
238
  * Render a custom scroll component, e.g. with a differently styled `RefreshControl`.
239
239
  */
240
- renderScrollComponent?: (props: ScrollViewProps) => React.JSX.Element;
240
+ renderScrollComponent?: ((props: ScrollViewProps) => React.JSX.Element) | undefined;
241
241
  /**
242
242
  * Amount of time between low-pri item render batches, e.g. for rendering items quite a ways off
243
243
  * screen. Similar fill rate/responsiveness tradeoff as `maxToRenderPerBatch`.
@@ -246,12 +246,12 @@ type OptionalVirtualizedListProps = {
246
246
  /**
247
247
  * See `ViewabilityHelper` for flow type and further documentation.
248
248
  */
249
- viewabilityConfig?: ViewabilityConfig;
249
+ viewabilityConfig?: ViewabilityConfig | undefined;
250
250
  /**
251
251
  * List of ViewabilityConfig/onViewableItemsChanged pairs. A specific onViewableItemsChanged
252
252
  * will be called when its corresponding ViewabilityConfig's conditions are met.
253
253
  */
254
- viewabilityConfigCallbackPairs?: Array<ViewabilityConfigCallbackPair>;
254
+ viewabilityConfigCallbackPairs?: Array<ViewabilityConfigCallbackPair> | undefined;
255
255
  /**
256
256
  * Determines the maximum number of items rendered outside of the visible area, in units of
257
257
  * visible lengths. So if your list fills the screen, then `windowSize={21}` (the default) will
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<d205487f5dd2d98d4f7d26e6f4821125>>
7
+ * @generated SignedSource<<8a0ffd4f2de75fedad80dd12264d9d7a>>
8
8
  *
9
9
  * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
10
  * Original file: packages/virtualized-lists/Lists/VirtualizedSectionList.js
@@ -27,7 +27,7 @@ export type SectionBase<SectionItemT, SectionT = DefaultVirtualizedSectionT> = {
27
27
  * Optional key to keep track of section re-ordering. If you don't plan on re-ordering sections,
28
28
  * the array index will be used by default.
29
29
  */
30
- key?: string;
30
+ key?: string | undefined;
31
31
  renderItem?: ((info: {
32
32
  item: SectionItemT;
33
33
  index: number;
@@ -39,7 +39,7 @@ export type SectionBase<SectionItemT, SectionT = DefaultVirtualizedSectionT> = {
39
39
  };
40
40
  }) => null | React.JSX.Element) | undefined;
41
41
  ItemSeparatorComponent?: (React.ComponentType<any> | React.JSX.Element) | undefined;
42
- keyExtractor?: (item: SectionItemT | undefined, index?: number | undefined) => string;
42
+ keyExtractor?: ((item: SectionItemT | undefined, index?: number | undefined) => string) | undefined;
43
43
  };
44
44
  type RequiredVirtualizedSectionListProps<ItemT, SectionT = DefaultVirtualizedSectionT> = {
45
45
  sections: ReadonlyArray<SectionData<ItemT, SectionT>>;
@@ -48,7 +48,7 @@ type OptionalVirtualizedSectionListProps<ItemT, SectionT = DefaultVirtualizedSec
48
48
  /**
49
49
  * Default renderer for every item in every section.
50
50
  */
51
- renderItem?: (info: {
51
+ renderItem?: ((info: {
52
52
  item: ItemT;
53
53
  index: number;
54
54
  section: SectionT;
@@ -57,7 +57,7 @@ type OptionalVirtualizedSectionListProps<ItemT, SectionT = DefaultVirtualizedSec
57
57
  unhighlight: () => void;
58
58
  updateProps: (select: "leading" | "trailing", newProps: Object) => void;
59
59
  };
60
- }) => null | React.ReactNode;
60
+ }) => null | React.ReactNode) | undefined;
61
61
  /**
62
62
  * Rendered at the top of each section. These stick to the top of the `ScrollView` by default on
63
63
  * iOS. See `stickySectionHeadersEnabled`.
@@ -83,7 +83,7 @@ type OptionalVirtualizedSectionListProps<ItemT, SectionT = DefaultVirtualizedSec
83
83
  * Makes section headers stick to the top of the screen until the next one pushes it off. Only
84
84
  * enabled by default on iOS because that is the platform standard there.
85
85
  */
86
- stickySectionHeadersEnabled?: boolean;
86
+ stickySectionHeadersEnabled?: boolean | undefined;
87
87
  onEndReached?: (($$PARAM_0$$: {
88
88
  distanceFromEnd: number;
89
89
  }) => void) | undefined;
@@ -93,14 +93,14 @@ export type ScrollToLocationParamsType = {
93
93
  animated?: boolean | undefined;
94
94
  itemIndex: number;
95
95
  sectionIndex: number;
96
- viewOffset?: number;
97
- viewPosition?: number;
96
+ viewOffset?: number | undefined;
97
+ viewPosition?: number | undefined;
98
98
  };
99
99
  declare const VirtualizedSectionListComponent: <ItemT, SectionT extends SectionBase<ItemT, DefaultVirtualizedSectionT> = DefaultVirtualizedSectionT>(props: Omit<VirtualizedSectionListProps<ItemT, SectionT>, "ref"> & {
100
100
  ref?: React.Ref<{
101
101
  getListRef(): VirtualizedList | undefined;
102
102
  scrollToLocation(params: ScrollToLocationParamsType): void;
103
- }>;
103
+ }> | undefined;
104
104
  }) => React.ReactNode;
105
105
  declare const $$VirtualizedSectionList: typeof VirtualizedSectionListComponent;
106
106
  declare type $$VirtualizedSectionList = typeof $$VirtualizedSectionList;