From cb46f4cff8964a440aedb9ffe9c4ba7fc4a1d930 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Fri, 29 Sep 2023 12:11:24 -0700 Subject: [PATCH] Remove support for Android API < 23 in ReactViewManager (#39678) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39678 Since minsdk version was increased to 23, we are deleting code using Android APIs < 23 for class ReactViewManager bypass-github-export-checks changelog: [Android][Breaking] Remove support for Android API < 23 in ReactViewManager Reviewed By: NickGerleman Differential Revision: D48545513 fbshipit-source-id: fba0212cc832b6b309ae0bfb45c0e08bf79bd5d1 --- .../java/com/facebook/react/views/view/ReactViewManager.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java index 7f3a931e964f0b..dde735192aafa6 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java @@ -7,9 +7,7 @@ package com.facebook.react.views.view; -import android.annotation.TargetApi; import android.graphics.Rect; -import android.os.Build; import android.view.View; import androidx.annotation.NonNull; import androidx.annotation.Nullable; @@ -203,7 +201,6 @@ public void setNativeBackground(ReactViewGroup view, @Nullable ReadableMap bg) { : ReactDrawableHelper.createDrawableFromJSDescription(view.getContext(), bg)); } - @TargetApi(Build.VERSION_CODES.M) @ReactProp(name = "nativeForegroundAndroid") public void setNativeForeground(ReactViewGroup view, @Nullable ReadableMap fg) { view.setForeground(