1 | import PropTypes from 'prop-types';
|
2 | import React from 'react';
|
3 | import { StyleProp, ViewStyle, TextStyle } from 'react-native';
|
4 | export interface LoadEarlierProps {
|
5 | isLoadingEarlier?: boolean;
|
6 | label?: string;
|
7 | containerStyle?: StyleProp<ViewStyle>;
|
8 | wrapperStyle?: StyleProp<ViewStyle>;
|
9 | textStyle?: StyleProp<TextStyle>;
|
10 | activityIndicatorStyle?: StyleProp<ViewStyle>;
|
11 | activityIndicatorColor?: string;
|
12 | activityIndicatorSize?: number | 'small' | 'large';
|
13 | onLoadEarlier?(): void;
|
14 | }
|
15 | export default class LoadEarlier extends React.Component<LoadEarlierProps> {
|
16 | static defaultProps: {
|
17 | onLoadEarlier: () => void;
|
18 | isLoadingEarlier: boolean;
|
19 | label: string;
|
20 | containerStyle: {};
|
21 | wrapperStyle: {};
|
22 | textStyle: {};
|
23 | activityIndicatorStyle: {};
|
24 | activityIndicatorColor: string;
|
25 | activityIndicatorSize: string;
|
26 | };
|
27 | static propTypes: {
|
28 | onLoadEarlier: PropTypes.Requireable<(...args: any[]) => any>;
|
29 | isLoadingEarlier: PropTypes.Requireable<boolean>;
|
30 | label: PropTypes.Requireable<string>;
|
31 | containerStyle: PropTypes.Requireable<number | boolean | object>;
|
32 | wrapperStyle: PropTypes.Requireable<number | boolean | object>;
|
33 | textStyle: PropTypes.Requireable<number | boolean | object>;
|
34 | activityIndicatorStyle: PropTypes.Requireable<number | boolean | object>;
|
35 | activityIndicatorColor: PropTypes.Requireable<string>;
|
36 | activityIndicatorSize: PropTypes.Requireable<string>;
|
37 | };
|
38 | renderLoading(): JSX.Element;
|
39 | render(): JSX.Element;
|
40 | }
|