mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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: https://github.com/facebook/react-native/pull/21398 Differential Revision: D10105398 Pulled By: shergin fbshipit-source-id: 15ae2b31be3bf80e7e1d28b87ce4474af0f486f5
This commit is contained in:
committed by
Mike Grabowski
parent
8744e00ea9
commit
bc973d20e0
@@ -671,6 +671,10 @@ public class ReactViewGroup extends ViewGroup implements
|
||||
invalidate();
|
||||
}
|
||||
|
||||
public @Nullable String getOverflow() {
|
||||
return mOverflow;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the background for the view or remove the background. It calls {@link
|
||||
* #setBackground(Drawable)} or {@link #setBackgroundDrawable(Drawable)} based on the sdk version.
|
||||
|
||||
Reference in New Issue
Block a user