@react-native/virtualized-lists 0.81.0-rc.0 → 0.82.0-nightly-20250710-586f5ba89
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/FillRateHelper.js +8 -0
- package/Lists/VirtualizedList.js +2 -0
- package/package.json +1 -1
- package/types_generated/Lists/CellRenderMask.d.ts +2 -2
- package/types_generated/Lists/FillRateHelper.d.ts +2 -2
- package/types_generated/Lists/ListMetricsAggregator.d.ts +2 -2
- package/types_generated/Lists/StateSafePureComponent.d.ts +2 -2
- package/types_generated/Lists/ViewabilityHelper.d.ts +2 -2
- package/types_generated/Lists/VirtualizeUtils.d.ts +2 -2
- package/types_generated/Lists/VirtualizedList.d.ts +2 -2
- package/types_generated/Lists/VirtualizedListContext.d.ts +2 -2
- package/types_generated/Lists/VirtualizedListProps.d.ts +2 -2
- package/types_generated/Lists/VirtualizedSectionList.d.ts +2 -2
- package/types_generated/index.d.ts +2 -2
package/Lists/FillRateHelper.js
CHANGED
|
@@ -33,6 +33,8 @@ const DEBUG = false;
|
|
|
33
33
|
|
|
34
34
|
let _listeners: Array<(Info) => void> = [];
|
|
35
35
|
let _minSampleCount = 10;
|
|
36
|
+
/* $FlowFixMe[constant-condition] Error discovered during Constant Condition
|
|
37
|
+
* roll out. See https://fburl.com/workplace/1v97vimq. */
|
|
36
38
|
let _sampleRate = DEBUG ? 1 : null;
|
|
37
39
|
|
|
38
40
|
/**
|
|
@@ -82,6 +84,8 @@ class FillRateHelper {
|
|
|
82
84
|
|
|
83
85
|
activate() {
|
|
84
86
|
if (this._enabled && this._samplesStartTime == null) {
|
|
87
|
+
/* $FlowFixMe[constant-condition] Error discovered during Constant
|
|
88
|
+
* Condition roll out. See https://fburl.com/workplace/1v97vimq. */
|
|
85
89
|
DEBUG && console.debug('FillRateHelper: activate');
|
|
86
90
|
this._samplesStartTime = global.performance.now();
|
|
87
91
|
}
|
|
@@ -93,6 +97,8 @@ class FillRateHelper {
|
|
|
93
97
|
}
|
|
94
98
|
const start = this._samplesStartTime; // const for flow
|
|
95
99
|
if (start == null) {
|
|
100
|
+
/* $FlowFixMe[constant-condition] Error discovered during Constant
|
|
101
|
+
* Condition roll out. See https://fburl.com/workplace/1v97vimq. */
|
|
96
102
|
DEBUG &&
|
|
97
103
|
console.debug('FillRateHelper: bail on deactivate with no start time');
|
|
98
104
|
return;
|
|
@@ -107,6 +113,8 @@ class FillRateHelper {
|
|
|
107
113
|
...this._info,
|
|
108
114
|
total_time_spent,
|
|
109
115
|
};
|
|
116
|
+
/* $FlowFixMe[constant-condition] Error discovered during Constant
|
|
117
|
+
* Condition roll out. See https://fburl.com/workplace/1v97vimq. */
|
|
110
118
|
if (DEBUG) {
|
|
111
119
|
const derived = {
|
|
112
120
|
avg_blankness: this._info.pixels_blank / this._info.pixels_sampled,
|
package/Lists/VirtualizedList.js
CHANGED
|
@@ -279,6 +279,8 @@ class VirtualizedList extends StateSafePureComponent<
|
|
|
279
279
|
const cartOffset = this._listMetrics.cartesianOffset(
|
|
280
280
|
offset + this._scrollMetrics.visibleLength,
|
|
281
281
|
);
|
|
282
|
+
/* $FlowFixMe[constant-condition] Error discovered during Constant
|
|
283
|
+
* Condition roll out. See https://fburl.com/workplace/1v97vimq. */
|
|
282
284
|
return horizontal ? {x: cartOffset} : {y: cartOffset};
|
|
283
285
|
} else {
|
|
284
286
|
return horizontal ? {x: offset} : {y: offset};
|
package/package.json
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
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<<
|
|
7
|
+
* @generated SignedSource<<f9c45ce2bdf2e3ee2b9734aa8032542c>>
|
|
8
8
|
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/virtualized-lists/Lists/CellRenderMask.js
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -4,9 +4,9 @@
|
|
|
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<<
|
|
7
|
+
* @generated SignedSource<<1ccfec0a0722ba9e0e9fb01d1ed7221c>>
|
|
8
8
|
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/virtualized-lists/Lists/FillRateHelper.js
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -4,9 +4,9 @@
|
|
|
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<<
|
|
7
|
+
* @generated SignedSource<<f623b47d93e1e0fe9b2f92b3e51741b1>>
|
|
8
8
|
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
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
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -4,9 +4,9 @@
|
|
|
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<<
|
|
7
|
+
* @generated SignedSource<<e0d2ed06b7508b8127df565e426e1352>>
|
|
8
8
|
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/virtualized-lists/Lists/StateSafePureComponent.js
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -4,9 +4,9 @@
|
|
|
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<<
|
|
7
|
+
* @generated SignedSource<<67bb8ff601be8116579df670a6e3ea35>>
|
|
8
8
|
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
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
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -4,9 +4,9 @@
|
|
|
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<<
|
|
7
|
+
* @generated SignedSource<<5b235d979a9e973d258802a5a7793f31>>
|
|
8
8
|
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/virtualized-lists/Lists/VirtualizeUtils.js
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -4,9 +4,9 @@
|
|
|
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<<
|
|
7
|
+
* @generated SignedSource<<a562ddf8afa2306919e86f1c782188e8>>
|
|
8
8
|
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
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
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -4,9 +4,9 @@
|
|
|
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<<
|
|
7
|
+
* @generated SignedSource<<5da4d2e9b1004fecc8741b0079f83a2f>>
|
|
8
8
|
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/virtualized-lists/Lists/VirtualizedListContext.js
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -4,9 +4,9 @@
|
|
|
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<<
|
|
7
|
+
* @generated SignedSource<<1487b2ebc9c47c099e58e22b06d67b3c>>
|
|
8
8
|
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
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
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -4,9 +4,9 @@
|
|
|
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<<
|
|
7
|
+
* @generated SignedSource<<2b710220e5b29de03c1632453d366ac9>>
|
|
8
8
|
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
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
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -4,9 +4,9 @@
|
|
|
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<<
|
|
7
|
+
* @generated SignedSource<<41975efe8a896e3e8783c422580b8a9b>>
|
|
8
8
|
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/virtualized-lists/index.js
|
|
11
11
|
*/
|
|
12
12
|
|