Forward extra data to press event (#828)

This commit is contained in:
Augustin Le Fèvre
2021-10-15 21:02:34 +02:00
committed by GitHub
parent 4e30352bcf
commit 3735b0e41f
4 changed files with 20 additions and 8 deletions
+1 -1
View File
@@ -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;
};