Skip to content

Commit c56477b

Browse files
committed
remove old api component RNGestureHandlerEnabledRootView
1 parent f58afd2 commit c56477b

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEnabledRootView.kt

Lines changed: 0 additions & 15 deletions
This file was deleted.

android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootView.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,12 @@ class RNGestureHandlerRootView(context: Context?) : ReactViewGroup(context) {
5959

6060
var parent = viewGroup.parent
6161
while (parent != null) {
62-
// our own deprecated root view
6362
@Suppress("DEPRECATION")
64-
if (parent is RNGestureHandlerEnabledRootView || parent is RNGestureHandlerRootView) {
63+
if (parent is RNGestureHandlerRootView) {
6564
return true
6665
}
6766
// Checks other roots views but it's mainly for ReactModalHostView.DialogRootViewGroup
6867
// since modals are outside RN hierachy and we have to initialize GH's root view for it
69-
// Note that RNGestureHandlerEnabledRootView implements RootView - that's why this check has to be below
7068
if (parent is RootView) {
7169
return false
7270
}

0 commit comments

Comments
 (0)