From 573d85ca0826c4e022e0d29dd3e721597518540d Mon Sep 17 00:00:00 2001 From: Kyle Fang Date: Sun, 12 May 2019 10:18:03 +0800 Subject: [PATCH] chore: remove touch through view --- .../com/touchthroughviewissue/MainActivity.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/android/app/src/main/java/com/touchthroughviewissue/MainActivity.java b/android/app/src/main/java/com/touchthroughviewissue/MainActivity.java index ca9b095..b59cb11 100644 --- a/android/app/src/main/java/com/touchthroughviewissue/MainActivity.java +++ b/android/app/src/main/java/com/touchthroughviewissue/MainActivity.java @@ -1,9 +1,6 @@ package com.touchthroughviewissue; import com.facebook.react.ReactActivity; -import android.view.MotionEvent; -import com.rome2rio.android.reactnativetouchthroughview.TouchThroughTouchHandlerInterface; -import com.rome2rio.android.reactnativetouchthroughview.TouchThroughTouchHandler; import com.facebook.react.ReactActivityDelegate; import com.facebook.react.ReactRootView; import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView; @@ -11,8 +8,6 @@ import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView; public class MainActivity extends ReactActivity { - private TouchThroughTouchHandler touchThroughTouchHandler = new TouchThroughTouchHandler(); - /** * Returns the name of the main component registered from JavaScript. * This is used to schedule rendering of the component. @@ -32,15 +27,4 @@ public class MainActivity extends ReactActivity { }; } - public TouchThroughTouchHandler getTouchThroughTouchHandler() { - return touchThroughTouchHandler; - } - - @Override - public boolean dispatchTouchEvent(MotionEvent ev) { - touchThroughTouchHandler.handleTouchEvent(ev); - - return super.dispatchTouchEvent(ev); - } - }