mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
Forward extra data to press event (#828)
This commit is contained in:
committed by
GitHub
parent
4e30352bcf
commit
3735b0e41f
Vendored
+1
-1
@@ -321,7 +321,7 @@ export type FireEventFunction = (
|
||||
) => any;
|
||||
|
||||
export type FireEventAPI = FireEventFunction & {
|
||||
press: (element: ReactTestInstance) => any;
|
||||
press: (element: ReactTestInstance, ...data: Array<any>) => any;
|
||||
changeText: (element: ReactTestInstance, ...data: Array<any>) => any;
|
||||
scroll: (element: ReactTestInstance, ...data: Array<any>) => any;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user