diff --git a/src/gesturehandler/gesturehandler.android.ts b/src/gesturehandler/gesturehandler.android.ts index ea9334f..c8c604a 100644 --- a/src/gesturehandler/gesturehandler.android.ts +++ b/src/gesturehandler/gesturehandler.android.ts @@ -531,7 +531,7 @@ export class Manager extends ManagerBase { return handler as any; } - findRegistry(view: View) { + findRegistry(view: View): com.swmansion.gesturehandler.GestureHandlerRegistryImpl { let registry: com.swmansion.gesturehandler.GestureHandlerRegistryImpl; const page = view.page as PageGestureExtended; if (page) { @@ -548,7 +548,7 @@ export class Manager extends ManagerBase { } return registry; } - attachGestureHandlerToView(handler: Handler, view: View) { + attachGestureHandlerToView = com.swmansion.gesturehandler.GestureHandler>(handler: Handler, view: View) { const nHandler = handler.getNative(); if (nHandler) { const registry = this.findRegistry(view); @@ -561,18 +561,18 @@ export class Manager extends ManagerBase { } } - detachGestureHandlerFromView(handler: Handler, view: View) { + detachGestureHandlerFromView = com.swmansion.gesturehandler.GestureHandler>(handler: Handler, view: View) { const nHandler = handler.getNative(); if (nHandler) { const registry = this.findRegistry(view); if (registry) { - registry.dropHandler(handler.getNative()); + registry.dropHandler(nHandler.getTag()); } } } viewListeners = new Map void; dispose: () => void }>>(); - attachGestureHandler(handler: Handler, view: View) { + attachGestureHandler = com.swmansion.gesturehandler.GestureHandler>(handler: Handler, view: View) { if (view.nativeView) { this.attachGestureHandlerToView(handler, view); } @@ -590,7 +590,7 @@ export class Manager extends ManagerBase { dispose: onDispose, }); } - detachGestureHandler(handler: Handler, view: View) { + detachGestureHandler = com.swmansion.gesturehandler.GestureHandler>(handler: Handler, view: View) { if (view) { const viewListeners = this.viewListeners.get(view); if (viewListeners) {