@react-native-tvos/virtualized-lists 0.75.2-0rc0 → 0.75.3-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/Lists/VirtualizedList.js +5 -3
- package/package.json +2 -2
package/Lists/VirtualizedList.js
CHANGED
|
@@ -1863,7 +1863,7 @@ class VirtualizedList extends StateSafePureComponent<Props, State> {
|
|
|
1863
1863
|
_updateCellsToRender = () => {
|
|
1864
1864
|
this._updateViewableItems(this.props, this.state.cellsAroundViewport);
|
|
1865
1865
|
|
|
1866
|
-
this.setState((state, props) => {
|
|
1866
|
+
this.setState((state, props: any) => {
|
|
1867
1867
|
const cellsAroundViewport = this._adjustCellsAroundViewport(
|
|
1868
1868
|
props,
|
|
1869
1869
|
state.cellsAroundViewport,
|
|
@@ -1908,12 +1908,14 @@ class VirtualizedList extends StateSafePureComponent<Props, State> {
|
|
|
1908
1908
|
}
|
|
1909
1909
|
|
|
1910
1910
|
_getNonViewportRenderRegions = (
|
|
1911
|
-
props: CellMetricProps
|
|
1911
|
+
props: CellMetricProps & {
|
|
1912
|
+
additionalRenderRegions?: {first: number, last: number}[],
|
|
1913
|
+
},
|
|
1912
1914
|
): $ReadOnlyArray<{
|
|
1913
1915
|
first: number,
|
|
1914
1916
|
last: number,
|
|
1915
1917
|
}> => {
|
|
1916
|
-
let nonViewportRenderRegions = [];
|
|
1918
|
+
let nonViewportRenderRegions: {first: number, last: number}[] = [];
|
|
1917
1919
|
|
|
1918
1920
|
if (props?.additionalRenderRegions?.length) {
|
|
1919
1921
|
nonViewportRenderRegions = [...props.additionalRenderRegions];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-tvos/virtualized-lists",
|
|
3
|
-
"version": "0.75.
|
|
3
|
+
"version": "0.75.3-0",
|
|
4
4
|
"description": "Virtualized lists for React Native.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@types/react": "^18.2.6",
|
|
31
31
|
"react": "*",
|
|
32
|
-
"react-native": "*"
|
|
32
|
+
"react-native-tvos": "*"
|
|
33
33
|
},
|
|
34
34
|
"peerDependenciesMeta": {
|
|
35
35
|
"@types/react": {
|