react-wb-imageviewer
Version:
Images viewer is a react component use in mobile website App, that function same as Weibo native viewer.
19 lines (18 loc) • 588 B
TypeScript
import './style.less';
import React from 'react';
declare type WbImageViewerProps = {
src: string;
visibility: boolean;
onClose: () => void;
};
declare type LoadingImgProps = {
src?: string | null | '';
alt?: string;
loadingHeight: number | string;
};
export declare const Loading: React.FC<{
className?: string | undefined;
}>;
export declare const LoadingImg: React.ForwardRefExoticComponent<LoadingImgProps & React.RefAttributes<HTMLImageElement>>;
export declare function WbImageViewer(props: WbImageViewerProps): JSX.Element;
export {};