UNPKG

react-native-screenshot-test

Version:
32 lines (31 loc) 863 B
import { ReactElement } from 'react'; export declare const defaultConfig: { path: string; serverUrl: string; batchSize: number; maxWidth: number; backgroundColor: string; showDiffInGrayScale: boolean; quality: number; }; export interface ScreenshotConfig { path?: string; serverUrl?: string; port?: string; batchSize?: number; maxWidth?: number; backgroundColor?: string; showDiffInGrayScale?: boolean; quality?: number; } export interface Components { component: (props?: any) => ReactElement; title: string; id: string; description?: string; showDiffInGrayScale?: boolean; maxWidth?: number; backgroundColor?: string; quality?: number; } export declare const withScreenShot: (components: Components[], isHeadless?: boolean, screenshotConfig?: ScreenshotConfig) => any;