From 2671ee614bf9f6f2d5f2bb964153cc6fd7622536 Mon Sep 17 00:00:00 2001 From: Krzysztof Magiera Date: Fri, 28 Sep 2018 11:12:43 +0200 Subject: [PATCH 1/2] Expose getter for overflow setting in ReactViewGroup --- .../java/com/facebook/react/views/view/ReactViewGroup.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java b/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java index d6a0c1e80add99..a67fbc6efcd4e4 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java @@ -644,6 +644,10 @@ public void setOverflow(String overflow) { invalidate(); } + public 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. From 0c4dc26a4e15a76f431586aa72924b070c3e99b4 Mon Sep 17 00:00:00 2001 From: Krzysztof Magiera Date: Fri, 28 Sep 2018 11:22:11 +0200 Subject: [PATCH 2/2] Mark overflow getter as Nullable --- .../main/java/com/facebook/react/views/view/ReactViewGroup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java b/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java index a67fbc6efcd4e4..246db3459f9071 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java @@ -644,7 +644,7 @@ public void setOverflow(String overflow) { invalidate(); } - public String getOverflow() { + public @Nullable String getOverflow() { return mOverflow; }