@react-native/virtualized-lists 0.78.0-rc.0 → 0.79.0-nightly-20250116-843582b8b

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.
@@ -35,7 +35,7 @@ export type ViewabilityConfigCallbackPair = {
35
35
  ...
36
36
  };
37
37
 
38
- export type ViewabilityConfig = $ReadOnly<{|
38
+ export type ViewabilityConfig = $ReadOnly<{
39
39
  /**
40
40
  * Minimum amount of time (in milliseconds) that an item must be physically viewable before the
41
41
  * viewability callback will be fired. A high number means that scrolling through content without
@@ -62,7 +62,7 @@ export type ViewabilityConfig = $ReadOnly<{|
62
62
  * render.
63
63
  */
64
64
  waitForInteraction?: boolean,
65
- |}>;
65
+ }>;
66
66
 
67
67
  /**
68
68
  * A Utility class for calculating viewable items based on current metrics like scroll position and
@@ -43,10 +43,10 @@ export type Props<ItemT> = {
43
43
  ...
44
44
  };
45
45
 
46
- type SeparatorProps<ItemT> = $ReadOnly<{|
46
+ type SeparatorProps<ItemT> = $ReadOnly<{
47
47
  highlighted: boolean,
48
48
  leadingItem: ?ItemT,
49
- |}>;
49
+ }>;
50
50
 
51
51
  type State<ItemT> = {
52
52
  separatorProps: SeparatorProps<ItemT>,
@@ -52,7 +52,7 @@ export type RenderItemType<ItemT> = (
52
52
  info: RenderItemProps<ItemT>,
53
53
  ) => React.Node;
54
54
 
55
- type RequiredProps = {|
55
+ type RequiredProps = {
56
56
  /**
57
57
  * The default accessor functions assume this is an Array<{key: string} | {id: string}> but you can override
58
58
  * getItem, getItemCount, and keyExtractor to handle any type of index-based data.
@@ -66,8 +66,8 @@ type RequiredProps = {|
66
66
  * Determines how many items are in the data blob.
67
67
  */
68
68
  getItemCount: (data: any) => number,
69
- |};
70
- type OptionalProps = {|
69
+ };
70
+ type OptionalProps = {
71
71
  renderItem?: ?RenderItemType<Item>,
72
72
  /**
73
73
  * `debug` will turn on extra logging and visual overlays to aid with debugging both usage and
@@ -297,13 +297,13 @@ type OptionalProps = {|
297
297
  * The legacy implementation is no longer supported.
298
298
  */
299
299
  legacyImplementation?: empty,
300
- |};
300
+ };
301
301
 
302
- export type Props = {|
302
+ export type Props = {
303
303
  ...React.ElementConfig<ScrollView>,
304
304
  ...RequiredProps,
305
305
  ...OptionalProps,
306
- |};
306
+ };
307
307
 
308
308
  /**
309
309
  * Default Props Helper Functions
@@ -44,11 +44,11 @@ export type SectionBase<SectionItemT> = {
44
44
  ...
45
45
  };
46
46
 
47
- type RequiredProps<SectionT: SectionBase<any>> = {|
47
+ type RequiredProps<SectionT: SectionBase<any>> = {
48
48
  sections: $ReadOnlyArray<SectionT>,
49
- |};
49
+ };
50
50
 
51
- type OptionalProps<SectionT: SectionBase<any>> = {|
51
+ type OptionalProps<SectionT: SectionBase<any>> = {
52
52
  /**
53
53
  * Default renderer for every item in every section.
54
54
  */
@@ -87,11 +87,11 @@ type OptionalProps<SectionT: SectionBase<any>> = {|
87
87
  */
88
88
  stickySectionHeadersEnabled?: boolean,
89
89
  onEndReached?: ?({distanceFromEnd: number, ...}) => void,
90
- |};
90
+ };
91
91
 
92
92
  type VirtualizedListProps = React.ElementConfig<typeof VirtualizedList>;
93
93
 
94
- export type Props<SectionT> = {|
94
+ export type Props<SectionT> = {
95
95
  ...RequiredProps<SectionT>,
96
96
  ...OptionalProps<SectionT>,
97
97
  ...$Diff<
@@ -102,14 +102,14 @@ export type Props<SectionT> = {|
102
102
  ...
103
103
  },
104
104
  >,
105
- |};
106
- export type ScrollToLocationParamsType = {|
105
+ };
106
+ export type ScrollToLocationParamsType = {
107
107
  animated?: ?boolean,
108
108
  itemIndex: number,
109
109
  sectionIndex: number,
110
110
  viewOffset?: number,
111
111
  viewPosition?: number,
112
- |};
112
+ };
113
113
 
114
114
  type State = {childProps: VirtualizedListProps, ...};
115
115
 
@@ -453,15 +453,15 @@ class VirtualizedSectionList<
453
453
  };
454
454
  }
455
455
 
456
- type ItemWithSeparatorCommonProps = $ReadOnly<{|
456
+ type ItemWithSeparatorCommonProps = $ReadOnly<{
457
457
  leadingItem: ?Item,
458
458
  leadingSection: ?Object,
459
459
  section: Object,
460
460
  trailingItem: ?Item,
461
461
  trailingSection: ?Object,
462
- |}>;
462
+ }>;
463
463
 
464
- type ItemWithSeparatorProps = $ReadOnly<{|
464
+ type ItemWithSeparatorProps = $ReadOnly<{
465
465
  ...ItemWithSeparatorCommonProps,
466
466
  LeadingSeparatorComponent: ?React.ComponentType<any>,
467
467
  SeparatorComponent: ?React.ComponentType<any>,
@@ -481,7 +481,7 @@ type ItemWithSeparatorProps = $ReadOnly<{|
481
481
  updatePropsFor: (prevCellKey: string, value: Object) => void,
482
482
  renderItem: Function,
483
483
  inverted: boolean,
484
- |}>;
484
+ }>;
485
485
 
486
486
  function ItemWithSeparator(props: ItemWithSeparatorProps): React.Node {
487
487
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/virtualized-lists",
3
- "version": "0.78.0-rc.0",
3
+ "version": "0.79.0-nightly-20250116-843582b8b",
4
4
  "description": "Virtualized lists for React Native.",
5
5
  "license": "MIT",
6
6
  "repository": {