mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
fix: use actual react-native instead of homegrown mocks (#36)
<!-- Please provide enough information so that others can review your pull request. --> <!-- Keep pull requests small and focused on a single change. --> ### Summary This actually uncovered some bugs, like lack of `onDoublePress` (lol XD) and enabled us to have better snapshots for deep rendering. ### Test plan no new tests
This commit is contained in:
committed by
GitHub
parent
07d3be1c51
commit
03e2c4b0f2
Vendored
-1
@@ -41,7 +41,6 @@ export type FireEventFunction = (
|
||||
|
||||
export type FireEventAPI = FireEventFunction & {
|
||||
press: (element: ReactTestInstance) => any;
|
||||
doublePress: (element: ReactTestInstance) => any;
|
||||
changeText: (element: ReactTestInstance, data?: any) => any;
|
||||
scroll: (element: ReactTestInstance, data?: any) => any;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user