From 1d1780a89c3ed85cf9827b5309a820c5cabc99b1 Mon Sep 17 00:00:00 2001 From: Nouvistiardi Date: Thu, 21 Oct 2021 00:05:36 +0700 Subject: [PATCH] Change scrollViewProps type --- src/core/RecyclerListView.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core/RecyclerListView.tsx b/src/core/RecyclerListView.tsx index 82c48f29..28e10d6f 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, ScrollViewProps, ViewProps } from "react-native"; const IS_WEB = !Platform || Platform.OS === "web"; //#endif @@ -107,7 +107,12 @@ export interface RecyclerListViewProps { renderContentContainer?: (props?: object, children?: React.ReactNode) => React.ReactNode | null; //For all props that need to be proxied to inner/external scrollview. Put them in an object and they'll be spread //and passed down. For better typescript support. + //#if [REACT-NATIVE] + scrollViewProps?: Omit; + //#endif + //#if [WEB] scrollViewProps?: object; + //#endif applyWindowCorrection?: (offsetX: number, offsetY: number, windowCorrection: WindowCorrection) => void; onItemLayout?: (index: number) => void; }