react-native-hud-hybrid
Version:
progress hud for react native
39 lines (38 loc) • 1.01 kB
TypeScript
export declare class LoadingHUD {
private hud;
private loadingCount;
show(text?: string): void;
hide(): void;
hideAll(): void;
}
export interface HUDConfig {
backgroundColor?: string;
tintColor?: string;
cornerRadius?: number;
duration?: number;
graceTime?: number;
minShowTime?: number;
loadingText?: string;
}
export default class HUD {
static config(options?: HUDConfig): void;
static text(text: string): void;
static info(text: string): void;
static done(text: string): void;
static error(text: string): void;
static spinner(text?: string): HUD;
private promise;
onDismiss?: () => void;
constructor();
spinner(text?: string): this;
text(text: string): this;
info(text: string): this;
done(text: string): this;
error(text: string): this;
hide(): void;
hideDelay(delayMs?: number): void;
hideDelayDefault(): void;
handleDismission: (event: {
hudKey: string;
}) => void;
}