Skip to content

Commit 8b4965f

Browse files
committed
fix(android): fix issue with adding tap event to gesturerootview without a page parent
1 parent 3d0c47b commit 8b4965f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/gesturehandler/gesturehandler.android.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,9 @@ export class Manager extends ManagerBase {
547547
}
548548

549549
findRegistry(view: View): com.swmansion.gesturehandler.GestureHandlerRegistryImpl {
550+
if (view instanceof GestureRootView) {
551+
return view.registry;
552+
}
550553
let registry: com.swmansion.gesturehandler.GestureHandlerRegistryImpl;
551554
let parent = view.parent;
552555
// first test for GestureRootView

0 commit comments

Comments
 (0)