You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerModule.kt
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,10 +20,11 @@ class RNGestureHandlerModule(reactContext: ReactApplicationContext?) :
Copy file name to clipboardExpand all lines: packages/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt
+10-14Lines changed: 10 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -24,10 +24,8 @@ class RNGestureHandlerRootHelper(private val context: ReactContext, wrappedView:
24
24
init {
25
25
UiThreadUtil.assertOnUiThread()
26
26
val wrappedViewTag = wrappedView.id
27
-
check(wrappedViewTag >=1) { "Expect view tag to be set for $wrappedView" }
28
-
val module = (context asThemedReactContext).reactApplicationContext.getNativeModule(
29
-
RNGestureHandlerModule::class.java,
30
-
)!!
27
+
assert(wrappedViewTag >=1) { "Expect view tag to be set for $wrappedView" }
28
+
val module = context.getNativeModule(RNGestureHandlerModule::class.java)!!
31
29
val registry = module.registry
32
30
rootView = findRootViewTag(wrappedView)
33
31
Log.i(
@@ -41,15 +39,9 @@ class RNGestureHandlerRootHelper(private val context: ReactContext, wrappedView:
41
39
).apply {
42
40
minimumAlphaForTraversal =MIN_ALPHA_FOR_TOUCH
43
41
}
44
-
jsGestureHandler =RootViewGestureHandler().apply { tag =-wrappedViewTag }
0 commit comments