From f8021917df24f48132368a3d4dd98e868062cfb1 Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Mon, 17 Jun 2024 10:16:34 +0200 Subject: [PATCH] Implement `getNativeScrollRef` (#776) * Implement `getNativeScrollRef` * Update type * Update types again --------- Co-authored-by: ananyachandra14 --- src/core/RecyclerListView.tsx | 10 +++++++++- src/core/scrollcomponent/BaseScrollComponent.tsx | 6 ++++++ .../reactnative/scrollcomponent/ScrollComponent.tsx | 4 ++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/core/RecyclerListView.tsx b/src/core/RecyclerListView.tsx index d12edc14..1cceadfe 100644 --- a/src/core/RecyclerListView.tsx +++ b/src/core/RecyclerListView.tsx @@ -41,7 +41,7 @@ import { ComponentCompat } from "../utils/ComponentCompat"; import ScrollComponent from "../platform/reactnative/scrollcomponent/ScrollComponent"; import ViewRenderer from "../platform/reactnative/viewrenderer/ViewRenderer"; import { DefaultJSItemAnimator as DefaultItemAnimator } from "../platform/reactnative/itemanimators/defaultjsanimator/DefaultJSItemAnimator"; -import { Platform } from "react-native"; +import { Platform, ScrollView } from "react-native"; const IS_WEB = !Platform || Platform.OS === "web"; //#endif @@ -54,6 +54,7 @@ const IS_WEB = !Platform || Platform.OS === "web"; //import ViewRenderer from "../platform/web/viewrenderer/ViewRenderer"; //import { DefaultWebItemAnimator as DefaultItemAnimator } from "../platform/web/itemanimators/DefaultWebItemAnimator"; //const IS_WEB = true; +//type ScrollView = unknown; //#endif /*** @@ -394,6 +395,13 @@ export default class RecyclerListView

(this.props.externalScrollView); //TSI const renderContentContainer = this.props.renderContentContainer ? this.props.renderContentContainer : this._defaultContainer;