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.

24 lines 691 B
import { PerfTools, PerfState, DefaultPerfToolsField } from '../types'; export declare type Store = { tools: PerfTools; componentsMap: WeakMap<object, any>; perfState: PerfState; }; export declare const getDefaultStore: () => { tools: { renderCount: { current: {}; }; renderTime: { current: {}; }; }; componentsMap: WeakMap<object, any>; perfState: { hasRenderCount: boolean; hasRenderTime: boolean; }; }; export declare const store: Store; export declare const getPerfTools: <T extends DefaultPerfToolsField>() => PerfTools<T>; //# sourceMappingURL=store.d.ts.map