@react-native-tvos/virtualized-lists 0.73.4-0
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/Interaction/Batchinator.js +76 -0
- package/Lists/CellRenderMask.js +155 -0
- package/Lists/ChildListCollection.js +72 -0
- package/Lists/FillRateHelper.js +245 -0
- package/Lists/ListMetricsAggregator.js +303 -0
- package/Lists/StateSafePureComponent.js +85 -0
- package/Lists/ViewabilityHelper.js +348 -0
- package/Lists/VirtualizeUtils.js +245 -0
- package/Lists/VirtualizedList.d.ts +393 -0
- package/Lists/VirtualizedList.js +2019 -0
- package/Lists/VirtualizedListCellRenderer.js +245 -0
- package/Lists/VirtualizedListContext.js +114 -0
- package/Lists/VirtualizedListProps.js +337 -0
- package/Lists/VirtualizedSectionList.js +617 -0
- package/README.md +23 -0
- package/Utilities/clamp.js +23 -0
- package/Utilities/infoLog.js +20 -0
- package/index.d.ts +10 -0
- package/index.js +58 -0
- package/package.json +32 -0
package/index.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @format
|
|
8
|
+
* @flow
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
'use strict';
|
|
12
|
+
|
|
13
|
+
import {keyExtractor} from './Lists/VirtualizeUtils';
|
|
14
|
+
|
|
15
|
+
import typeof VirtualizedList from './Lists/VirtualizedList';
|
|
16
|
+
import typeof VirtualizedSectionList from './Lists/VirtualizedSectionList';
|
|
17
|
+
import {typeof VirtualizedListContextResetter} from './Lists/VirtualizedListContext';
|
|
18
|
+
import typeof ViewabilityHelper from './Lists/ViewabilityHelper';
|
|
19
|
+
import typeof FillRateHelper from './Lists/FillRateHelper';
|
|
20
|
+
|
|
21
|
+
export type {
|
|
22
|
+
ViewToken,
|
|
23
|
+
ViewabilityConfig,
|
|
24
|
+
ViewabilityConfigCallbackPair,
|
|
25
|
+
} from './Lists/ViewabilityHelper';
|
|
26
|
+
export type {
|
|
27
|
+
CellRendererProps,
|
|
28
|
+
RenderItemProps,
|
|
29
|
+
RenderItemType,
|
|
30
|
+
Separators,
|
|
31
|
+
} from './Lists/VirtualizedListProps';
|
|
32
|
+
export type {
|
|
33
|
+
Props as VirtualizedSectionListProps,
|
|
34
|
+
ScrollToLocationParamsType,
|
|
35
|
+
SectionBase,
|
|
36
|
+
} from './Lists/VirtualizedSectionList';
|
|
37
|
+
export type {FillRateInfo} from './Lists/FillRateHelper';
|
|
38
|
+
|
|
39
|
+
module.exports = {
|
|
40
|
+
keyExtractor,
|
|
41
|
+
|
|
42
|
+
get VirtualizedList(): VirtualizedList {
|
|
43
|
+
return require('./Lists/VirtualizedList');
|
|
44
|
+
},
|
|
45
|
+
get VirtualizedSectionList(): VirtualizedSectionList {
|
|
46
|
+
return require('./Lists/VirtualizedSectionList');
|
|
47
|
+
},
|
|
48
|
+
get VirtualizedListContextResetter(): VirtualizedListContextResetter {
|
|
49
|
+
const VirtualizedListContext = require('./Lists/VirtualizedListContext');
|
|
50
|
+
return VirtualizedListContext.VirtualizedListContextResetter;
|
|
51
|
+
},
|
|
52
|
+
get ViewabilityHelper(): ViewabilityHelper {
|
|
53
|
+
return require('./Lists/ViewabilityHelper');
|
|
54
|
+
},
|
|
55
|
+
get FillRateHelper(): FillRateHelper {
|
|
56
|
+
return require('./Lists/FillRateHelper');
|
|
57
|
+
},
|
|
58
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@react-native-tvos/virtualized-lists",
|
|
3
|
+
"version": "0.73.4-0",
|
|
4
|
+
"description": "Virtualized lists for React Native with TV focus engine support.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/react-native-tvos/react-native-tvos.git",
|
|
9
|
+
"directory": "packages/virtualized-lists"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/react-native-tvos/react-native-tvos/tree/HEAD/packages/virtualized-lists#readme",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"lists",
|
|
14
|
+
"virtualized-lists",
|
|
15
|
+
"section-lists",
|
|
16
|
+
"react-native"
|
|
17
|
+
],
|
|
18
|
+
"bugs": "https://github.com/react-native-tvos/react-native-tvos/issues",
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=18"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"invariant": "^2.2.4",
|
|
24
|
+
"nullthrows": "^1.1.1"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"react-test-renderer": "18.2.0"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"react-native": "*"
|
|
31
|
+
}
|
|
32
|
+
}
|