UNPKG

react-performance-testing

Version:

You can test React(ReactNative) runtime performance by using this lib. If you want to check the number of renders, or render time in a test environment, this lib makes sense.

9 lines 514 B
/// <reference types="react" /> import { PerfTools, PerfState } from '../types'; import { ReactSymbol } from './utils/symbols'; export interface PatchedClassComponent { } export declare const getPatchedComponent: (componentsMap: WeakMap<any, any>, type: import("react").ElementType<import("react").ComponentClass<{}, any> | import("react").FunctionComponent<{}>> & { $$typeof: ReactSymbol; }, tools: PerfTools, perfState: PerfState, React: any) => any; //# sourceMappingURL=getPatchedComponent.d.ts.map