forked from i6mi6/react-native-parallax-scroll-view
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
36 lines (31 loc) · 1.08 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import * as React from 'react';
declare class ParallaxScrollView extends React.Component<ParallaxScrollViewProps, {}> {
}
export interface ParallaxScrollViewProps {
backgroundScrollSpeed?: number;
backgroundColor?: string;
contentBackgroundColor?: string;
fadeOutForeground?: boolean;
onChangeHeaderVisibility?: (value: boolean) => void;
renderScrollComponent?: (props: any) => JSX.Element;
renderBackground?: (params: RenderBackgroundParams) => JSX.Element;
renderForeground?: () => JSX.Element;
renderFixedHeader?: () => JSX.Element;
renderStickyHeader?: () => JSX.Element;
stickyHeaderHeight?: number;
contentContainerStyle?: any;
outputScaleValue?: number;
style?: any;
parallaxHeaderHeight?: number;
enableScrollBounces: boolean;
}
export class RenderBackgroundParams {
fadeOutForeground: any;
backgroundScrollSpeed: number;
backgroundColor: string;
parallaxHeaderHeight: number;
stickyHeaderHeight: number;
renderBackground: () => void;
outputScaleValue: number;
}
export default ParallaxScrollView;