UNPKG

1.54 kBTypeScriptView Raw
1import PropTypes from 'prop-types';
2import React from 'react';
3import { StyleProp, ViewStyle, TextStyle } from 'react-native';
4export 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}
15export declare function LoadEarlier({ isLoadingEarlier, onLoadEarlier, label, containerStyle, wrapperStyle, textStyle, activityIndicatorColor, activityIndicatorSize, activityIndicatorStyle, }: LoadEarlierProps): React.ReactElement;
16export declare namespace LoadEarlier {
17 var propTypes: {
18 onLoadEarlier: PropTypes.Requireable<(...args: any[]) => any>;
19 isLoadingEarlier: PropTypes.Requireable<boolean>;
20 label: PropTypes.Requireable<string>;
21 containerStyle: PropTypes.Requireable<NonNullable<number | boolean | object | null | undefined>>;
22 wrapperStyle: PropTypes.Requireable<NonNullable<number | boolean | object | null | undefined>>;
23 textStyle: PropTypes.Requireable<NonNullable<number | boolean | object | null | undefined>>;
24 activityIndicatorStyle: PropTypes.Requireable<NonNullable<number | boolean | object | null | undefined>>;
25 activityIndicatorColor: PropTypes.Requireable<string>;
26 activityIndicatorSize: PropTypes.Requireable<string>;
27 };
28}