Skip to content

Commit e9b1ce8

Browse files
committed
.
1 parent ebd14cb commit e9b1ce8

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

src/__tests__/react-native-gesture-handler.test.tsx

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -55,35 +55,6 @@ test('userEvent can invoke press events for RNGH Pressable', async () => {
5555
</View>,
5656
);
5757

58-
expect(screen.toJSON()).toMatchInlineSnapshot(`
59-
<View>
60-
<RNGestureHandlerButton
61-
collapsable={false}
62-
enabled={true}
63-
hitSlop={
64-
{
65-
"bottom": 0,
66-
"left": 0,
67-
"right": 0,
68-
"top": 0,
69-
}
70-
}
71-
rippleColor="transparent"
72-
style={
73-
[
74-
{},
75-
undefined,
76-
]
77-
}
78-
testID="pressable"
79-
testOnly_onLongPress={[Function]}
80-
testOnly_onPress={[Function]}
81-
testOnly_onPressIn={[Function]}
82-
testOnly_onPressOut={[Function]}
83-
/>
84-
</View>
85-
`);
86-
8758
const pressable = screen.getByTestId('pressable');
8859
await user.press(pressable);
8960
expect(getEventsNames(events)).toEqual(['pressIn', 'pressOut', 'press']);

src/helpers/host-component-names.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ export function isHostText(element: ReactTestInstance): element is HostTestInsta
1717
return typeof element?.type === 'string' && HOST_TEXT_NAMES.includes(element.type);
1818
}
1919

20-
export type HostTextInput = HostTestInstance & {
21-
type: 'TextInput';
22-
editable?: boolean;
23-
};
24-
2520
/**
2621
* Checks if the given element is a host TextInput element.
2722
* @param element The element to check.

0 commit comments

Comments
 (0)