diff --git a/android/build.gradle b/android/build.gradle index f1d2631f..0a4cf2ef 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -15,7 +15,10 @@ buildscript { } def isNewArchitectureEnabled() { - return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true" + if (rootProject.hasProperty("newArchEnabled")) { + return rootProject.getProperty("newArchEnabled") == "true" + } + return true } apply plugin: "com.android.library" diff --git a/android/src/main/java/com/reactnativemenu/MenuView.kt b/android/src/main/java/com/reactnativemenu/MenuView.kt index c45f5cc8..16fb9946 100644 --- a/android/src/main/java/com/reactnativemenu/MenuView.kt +++ b/android/src/main/java/com/reactnativemenu/MenuView.kt @@ -25,8 +25,7 @@ class MenuView(private val mContext: ReactContext) : ReactViewGroup(mContext) { private var mGestureDetector: GestureDetector private var mHitSlopRect: Rect? = null set(value) { - super.hitSlopRect = value - mHitSlopRect = value + field = value updateTouchDelegate() }