Skip to content

Commit e42e5ac

Browse files
oobagiclaude
andauthored
fix: android build on Expo SDK 55+56 / RN 0.83 / Kotlin 2.x (#1197)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 749f82f commit e42e5ac

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

android/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ buildscript {
1515
}
1616

1717
def isNewArchitectureEnabled() {
18+
if (getReactNativeMinorVersion() >= 82) {
19+
return true
20+
}
1821
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
1922
}
2023

android/src/main/java/com/reactnativemenu/MenuView.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ class MenuView(private val mContext: ReactContext) : ReactViewGroup(mContext) {
2525
private var mGestureDetector: GestureDetector
2626
private var mHitSlopRect: Rect? = null
2727
set(value) {
28-
super.hitSlopRect = value
29-
mHitSlopRect = value
28+
field = value
3029
updateTouchDelegate()
3130
}
3231

0 commit comments

Comments
 (0)