Skip to content

Commit 49d9b3f

Browse files
ferrannpkmagiera
authored andcommitted
feat: add RNGestureHandlerEnabledRootView constructor with attrs so we can use this view inside an xml layout file (software-mansion#755)
1 parent 6fae2e8 commit 49d9b3f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import android.content.Context;
44
import android.os.Bundle;
5+
import android.util.AttributeSet;
56
import android.view.MotionEvent;
67

78
import com.facebook.react.ReactInstanceManager;
@@ -18,6 +19,10 @@ public RNGestureHandlerEnabledRootView(Context context) {
1819
super(context);
1920
}
2021

22+
public RNGestureHandlerEnabledRootView(Context context, AttributeSet attrs) {
23+
super(context, attrs);
24+
}
25+
2126
@Override
2227
public void requestDisallowInterceptTouchEvent(boolean disallowIntercept) {
2328
if (mGestureRootHelper != null) {

0 commit comments

Comments
 (0)