@testing-library/react-native
Version:
Simple and complete React Native testing utilities that encourage good testing practices.
27 lines (26 loc) • 443 B
TypeScript
/** `RefObject` type from React 19. */
export type RefObject<T> = {
current: T;
};
/**
* Location of an element.
*/
export interface Point {
y: number;
x: number;
}
/**
* Size of an element.
*/
export interface Size {
height: number;
width: number;
}
/**
* Range of text in a text input.
*/
export interface TextRange {
start: number;
end: number;
}
export type StringWithAutocomplete<T> = T | (string & {});