Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .yarn/patches/recyclerlistview-npm-4.2.1-ff4e0c8a07.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
diff --git a/dist/reactnative/core/VirtualRenderer.js b/dist/reactnative/core/VirtualRenderer.js
@@ -1,11 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+import {Platform, I18nManager} from 'react-native';
var RecycleItemPool_1 = require("../utils/RecycleItemPool");
var CustomError_1 = require("./exceptions/CustomError");
var RecyclerListViewExceptions_1 = require("./exceptions/RecyclerListViewExceptions");
var ViewabilityTracker_1 = require("./ViewabilityTracker");
var ts_object_utils_1 = require("ts-object-utils");
var TSCast_1 = require("../utils/TSCast");
+
+var isRN73 = () => Platform.constants.reactNativeVersion?.minor >= 73;
+var isRTL = I18nManager.isRTL;
+
var VirtualRenderer = /** @class */ (function () {
function VirtualRenderer(renderStackChanged, scrollOnNextUpdate, fetchStableId, isRecyclingEnabled) {
var _this = this;
\ No newline at end of file
@@ -73,7 +78,8 @@
};
VirtualRenderer.prototype.updateOffset = function (offsetX, offsetY, isActual, correction) {
if (this._viewabilityTracker) {
- var offset = this._params && this._params.isHorizontal ? offsetX : offsetY;
+ const _offsetX = isRTL && isRN73() ? this.getLayoutDimension().width - offsetX : offsetX
+ var offset = this._params && this._params.isHorizontal ? _offsetX : offsetY;
if (!this._isViewTrackerRunning) {
if (isActual) {
this._viewabilityTracker.setActualOffset(offset);
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"prop-types": "^15.5.10",
"react-native-safe-area-context": "4.5.0",
"react-native-swipe-gestures": "^1.0.5",
"recyclerlistview": "^4.0.0",
"recyclerlistview": "4.2.1",
"xdate": "^0.8.0"
},
"devDependencies": {
Expand Down Expand Up @@ -95,5 +95,8 @@
},
"engines": {
"node": ">=18"
},
"resolutions": {
"[email protected]": "patch:recyclerlistview@npm%3A4.2.1#./.yarn/patches/recyclerlistview-npm-4.2.1-ff4e0c8a07.patch"
}
}
Loading