Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change scrollViewProps type #656

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all 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
7 changes: 6 additions & 1 deletion src/core/RecyclerListView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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<ScrollViewProps, keyof ViewProps | keyof RecyclerListViewProps>;
//#endif
//#if [WEB]
scrollViewProps?: object;
//#endif
applyWindowCorrection?: (offsetX: number, offsetY: number, windowCorrection: WindowCorrection) => void;
onItemLayout?: (index: number) => void;
}
Expand Down