diff --git a/src/core/RecyclerListView.tsx b/src/core/RecyclerListView.tsx index 7cd73da7..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, ScrollViewComponent } 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,7 +395,7 @@ export default class RecyclerListView
| null {
+ public getNativeScrollRef(): ScrollView | null {
if (this._scrollComponent && this._scrollComponent.getNativeScrollRef) {
return this._scrollComponent.getNativeScrollRef();
}
diff --git a/src/core/scrollcomponent/BaseScrollComponent.tsx b/src/core/scrollcomponent/BaseScrollComponent.tsx
index 2e4958bb..ee2952ad 100644
--- a/src/core/scrollcomponent/BaseScrollComponent.tsx
+++ b/src/core/scrollcomponent/BaseScrollComponent.tsx
@@ -1,5 +1,5 @@
import * as React from "react";
-import { ScrollViewComponent } from "react-native";
+import { ScrollView } from "react-native";
import { Dimension } from "../dependencies/LayoutProvider";
import BaseScrollView, { ScrollEvent, ScrollViewDefaultProps } from "./BaseScrollView";
@@ -28,7 +28,7 @@ export default abstract class BaseScrollComponent extends React.Component