UNPKG

@testing-library/react-native

Version:

Simple and complete React Native testing utilities that encourage good testing practices.

13 lines (12 loc) 450 B
import type { ReactTestInstance } from 'react-test-renderer'; import type { Point } from './types'; /** * Simulated native state for unmanaged controls. * * Values from `value` props (managed controls) should take precedence over these values. */ export type NativeState = { valueForElement: WeakMap<ReactTestInstance, string>; contentOffsetForElement: WeakMap<ReactTestInstance, Point>; }; export declare const nativeState: NativeState;