Skip to content

Commit 6a472c5

Browse files
Thomas Nardonefacebook-github-bot
authored andcommitted
Remove ReactViewGroup.getBackgroundColor() (#47906)
Summary: Pull Request resolved: #47906 There are no usages in the repo. External usages should be using [BackgroundStyleApplicator](https://github.com/facebook/react-native/blob/main/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/BackgroundStyleApplicator.kt#L82). Changelog: [Android][Breaking] Removed ReactViewGroup.getBackgroundColor() Reviewed By: NickGerleman Differential Revision: D66368623 fbshipit-source-id: bf173efc7e40d3d8a5d55ba0f82eed49b4cb2746
1 parent a05d573 commit 6a472c5

File tree

1 file changed

+0
-9
lines changed
  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view

1 file changed

+0
-9
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import android.content.Context;
1616
import android.graphics.BlendMode;
1717
import android.graphics.Canvas;
18-
import android.graphics.Color;
1918
import android.graphics.Paint;
2019
import android.graphics.Rect;
2120
import android.graphics.drawable.Drawable;
@@ -33,7 +32,6 @@
3332
import com.facebook.react.bridge.ReactNoCrashSoftException;
3433
import com.facebook.react.bridge.ReactSoftExceptionLogger;
3534
import com.facebook.react.bridge.UiThreadUtil;
36-
import com.facebook.react.common.annotations.VisibleForTesting;
3735
import com.facebook.react.config.ReactFeatureFlags;
3836
import com.facebook.react.touch.OnInterceptTouchEventListener;
3937
import com.facebook.react.touch.ReactHitSlopView;
@@ -72,7 +70,6 @@ public class ReactViewGroup extends ViewGroup
7270
ReactOverflowViewWithInset {
7371

7472
private static final int ARRAY_CAPACITY_INCREMENT = 12;
75-
private static final int DEFAULT_BACKGROUND_COLOR = Color.TRANSPARENT;
7673
private static final LayoutParams sDefaultLayoutParam = new ViewGroup.LayoutParams(0, 0);
7774
private final Rect mOverflowInset = new Rect();
7875

@@ -760,12 +757,6 @@ private boolean needsIsolatedLayer() {
760757
return false;
761758
}
762759

763-
@VisibleForTesting
764-
public int getBackgroundColor() {
765-
@Nullable Integer color = BackgroundStyleApplicator.getBackgroundColor(this);
766-
return color == null ? DEFAULT_BACKGROUND_COLOR : color;
767-
}
768-
769760
@Override
770761
public @Nullable Rect getHitSlopRect() {
771762
return mHitSlopRect;

0 commit comments

Comments
 (0)