From f52ee6eaff3390a2d61531963adb4a7f11f4b8dd Mon Sep 17 00:00:00 2001 From: David Vacca <515103+mdvacca@users.noreply.github.com> Date: Tue, 26 Sep 2023 13:43:59 -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 chnagelog: [Android][Breaking] Remove support for Android API < 23 in ReactViewManager Reviewed By: NickGerleman Differential Revision: D48545513 fbshipit-source-id: 0ef7a6fc681573f280b0ab8f5e7187bbd7c87802 --- .../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(