@react-native/virtualized-lists 0.80.0-rc.0 → 0.80.0-rc.2

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.
@@ -17,6 +17,7 @@ import invariant from 'invariant';
17
17
  import * as React from 'react';
18
18
 
19
19
  type DefaultSectionT = {
20
+ data: any,
20
21
  [key: string]: any,
21
22
  };
22
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/virtualized-lists",
3
- "version": "0.80.0-rc.0",
3
+ "version": "0.80.0-rc.2",
4
4
  "description": "Virtualized lists for React Native.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -21,7 +21,8 @@
21
21
  },
22
22
  "exports": {
23
23
  ".": {
24
- "types": "./types_generated/index.d.ts",
24
+ "react-native-strict-api": "./types_generated/index.d.ts",
25
+ "types": "./index.d.ts",
25
26
  "default": "./index.js"
26
27
  },
27
28
  "./*": {
@@ -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<<a5a279ad7b2b4952c0b292fc0364efd0>>
7
+ * @generated SignedSource<<7836b7736475d5424bb50f0e87c4fe9d>>
8
8
  *
9
9
  * This file was translated from Flow by scripts/build-types/index.js.
10
10
  * Original file: packages/virtualized-lists/Lists/VirtualizedSectionList.js
@@ -14,6 +14,7 @@ import type { VirtualizedListProps } from "./VirtualizedListProps";
14
14
  import VirtualizedList from "./VirtualizedList";
15
15
  import * as React from "react";
16
16
  type DefaultSectionT = {
17
+ data: any;
17
18
  [key: string]: any;
18
19
  };
19
20
  export type SectionData<SectionItemT, SectionT = DefaultSectionT> = (Readonly<SectionBase<SectionItemT, SectionT>> & SectionT) | (SectionBase<SectionItemT, SectionT> & SectionT) | SectionT;
@@ -95,7 +96,7 @@ export type ScrollToLocationParamsType = {
95
96
  viewOffset?: number;
96
97
  viewPosition?: number;
97
98
  };
98
- declare const VirtualizedSectionList_DEFAULT: <ItemT, SectionT extends SectionBase<ItemT, DefaultSectionT> = DefaultSectionT>(props: Omit<VirtualizedSectionListProps<ItemT, SectionT>, keyof {
99
+ declare const $$VirtualizedSectionList: <ItemT, SectionT extends SectionBase<ItemT, DefaultSectionT> = DefaultSectionT>(props: Omit<VirtualizedSectionListProps<ItemT, SectionT>, keyof {
99
100
  ref: React.Ref<{
100
101
  getListRef(): VirtualizedList | undefined;
101
102
  scrollToLocation(params: ScrollToLocationParamsType): void;
@@ -106,5 +107,5 @@ declare const VirtualizedSectionList_DEFAULT: <ItemT, SectionT extends SectionBa
106
107
  scrollToLocation(params: ScrollToLocationParamsType): void;
107
108
  }>;
108
109
  }) => React.ReactNode;
109
- declare type VirtualizedSectionList_DEFAULT = typeof VirtualizedSectionList_DEFAULT;
110
- export default VirtualizedSectionList_DEFAULT;
110
+ declare type $$VirtualizedSectionList = typeof $$VirtualizedSectionList;
111
+ export default $$VirtualizedSectionList;
@@ -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<<ad4afa0adf0b5bfdac13112de6071354>>
7
+ * @generated SignedSource<<9d4786c4892b620061e5b10a2f4a8e85>>
8
8
  *
9
9
  * This file was translated from Flow by scripts/build-types/index.js.
10
10
  * Original file: packages/virtualized-lists/index.js
@@ -25,7 +25,7 @@ export type { ViewToken, ViewabilityConfig, ViewabilityConfigCallbackPair, Viewa
25
25
  export type { CellRendererProps, ListRenderItemInfo, ListRenderItem, Separators, VirtualizedListProps } from "./Lists/VirtualizedListProps";
26
26
  export type { VirtualizedSectionListProps, ScrollToLocationParamsType, SectionBase, SectionData } from "./Lists/VirtualizedSectionList";
27
27
  export type { FillRateInfo } from "./Lists/FillRateHelper";
28
- declare const index_DEFAULT: {
28
+ declare const $$index: {
29
29
  keyExtractor: typeof keyExtractor;
30
30
  get VirtualizedList(): VirtualizedList;
31
31
  get VirtualizedSectionList(): VirtualizedSectionList<any, any>;
@@ -33,5 +33,5 @@ declare const index_DEFAULT: {
33
33
  get ViewabilityHelper(): ViewabilityHelper;
34
34
  get FillRateHelper(): FillRateHelper;
35
35
  };
36
- declare type index_DEFAULT = typeof index_DEFAULT;
37
- export default index_DEFAULT;
36
+ declare type $$index = typeof $$index;
37
+ export default $$index;