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:
Krzysztof Magiera
2018-09-28 09:25:39 -07:00
committed by Facebook Github Bot
parent ae4be91cac
commit 02ad56f541

View File

@@ -644,6 +644,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.