Skip to content

Commit 97c549e

Browse files
authored
Rename event parameter (#3782)
## Description This PR renames `event` parameter to `ev` in order to remove compilation warning. If #3738 has not been fixed yet - this one should do the trick. ## Test plan Build example app on android
1 parent 1b7ab57 commit 97c549e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootView.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ class RNGestureHandlerRootView(context: Context?) : ReactViewGroup(context) {
4040
super.dispatchTouchEvent(event)
4141
}
4242

43-
override fun dispatchGenericMotionEvent(event: MotionEvent) =
44-
if (rootViewEnabled && rootHelper!!.dispatchTouchEvent(event)) {
43+
override fun dispatchGenericMotionEvent(ev: MotionEvent) =
44+
if (rootViewEnabled && rootHelper!!.dispatchTouchEvent(ev)) {
4545
true
4646
} else {
47-
super.dispatchGenericMotionEvent(event)
47+
super.dispatchGenericMotionEvent(ev)
4848
}
4949

5050
override fun requestDisallowInterceptTouchEvent(disallowIntercept: Boolean) {

0 commit comments

Comments
 (0)