This repository was archived by the owner on Aug 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLoadEarlier.d.ts
More file actions
40 lines (40 loc) · 1.55 KB
/
LoadEarlier.d.ts
File metadata and controls
40 lines (40 loc) · 1.55 KB
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
37
38
39
40
import PropTypes from 'prop-types';
import React from 'react';
import { StyleProp, ViewStyle, TextStyle } from 'react-native';
export interface LoadEarlierProps {
isLoadingEarlier?: boolean;
label?: string;
containerStyle?: StyleProp<ViewStyle>;
wrapperStyle?: StyleProp<ViewStyle>;
textStyle?: StyleProp<TextStyle>;
activityIndicatorStyle?: StyleProp<ViewStyle>;
activityIndicatorColor?: string;
activityIndicatorSize?: number | 'small' | 'large';
onLoadEarlier?(): void;
}
export default class LoadEarlier extends React.Component<LoadEarlierProps> {
static defaultProps: {
onLoadEarlier: () => void;
isLoadingEarlier: boolean;
label: string;
containerStyle: {};
wrapperStyle: {};
textStyle: {};
activityIndicatorStyle: {};
activityIndicatorColor: string;
activityIndicatorSize: string;
};
static propTypes: {
onLoadEarlier: PropTypes.Requireable<(...args: any[]) => any>;
isLoadingEarlier: PropTypes.Requireable<boolean>;
label: PropTypes.Requireable<string>;
containerStyle: PropTypes.Validator<StyleProp<ViewStyle>> | undefined;
wrapperStyle: PropTypes.Validator<StyleProp<ViewStyle>> | undefined;
textStyle: PropTypes.Requireable<any>;
activityIndicatorStyle: PropTypes.Validator<StyleProp<ViewStyle>> | undefined;
activityIndicatorColor: PropTypes.Requireable<string>;
activityIndicatorSize: PropTypes.Requireable<string>;
};
renderLoading(): JSX.Element;
render(): JSX.Element;
}