Skip to content

Commit bc973d2

Browse files
kmagieragrabbou
authored andcommitted
Expose a getter for overflow setting in ReactViewGroup (#21398)
Summary: This change adds getter for overflow attribute in ReactViewGroup class. Overflow setting can affect how view children are drawn but also how hit testing behaves when receiving touch. Exposing this setting makes it possible for gesture-handler library to implement proper hit testing that takes into account overflow property of a view. Pull Request resolved: #21398 Differential Revision: D10105398 Pulled By: shergin fbshipit-source-id: 15ae2b31be3bf80e7e1d28b87ce4474af0f486f5
1 parent 8744e00 commit bc973d2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,10 @@ public void setOverflow(String overflow) {
671671
invalidate();
672672
}
673673

674+
public @Nullable String getOverflow() {
675+
return mOverflow;
676+
}
677+
674678
/**
675679
* Set the background for the view or remove the background. It calls {@link
676680
* #setBackground(Drawable)} or {@link #setBackgroundDrawable(Drawable)} based on the sdk version.

0 commit comments

Comments
 (0)