@testing-library/react-native
Version:
Simple and complete React Native testing utilities that encourage good testing practices.
8 lines (7 loc) • 367 B
TypeScript
import type { ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native';
import type { ReactTestInstance } from 'react-test-renderer';
export type Style = ViewStyle | TextStyle | ImageStyle;
export declare function toHaveStyle(this: jest.MatcherContext, element: ReactTestInstance, style: StyleProp<Style>): {
pass: boolean;
message: () => string;
};