diff --git a/detox/src/android/expect.js b/detox/src/android/expect.js index ea48800864..f4f49809e8 100644 --- a/detox/src/android/expect.js +++ b/detox/src/android/expect.js @@ -38,7 +38,7 @@ class TapAction extends Action { class TapAtPointAction extends Action { constructor(value) { super(); - this._call = invoke.call(invoke.Android.Class(DetoxAction), 'tapAtLocation', invoke.Android.Integer(value.x), invoke.Android.Integer(value.y)); + this._call = invoke.callDirectly(DetoxActionApi.tapAtLocation(value.x, value.y)); } }