Skip to content

Commit cb46f4c

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Remove support for Android API < 23 in ReactViewManager (#39678)
Summary: Pull Request resolved: #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
1 parent 120aab2 commit cb46f4c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77

88
package com.facebook.react.views.view;
99

10-
import android.annotation.TargetApi;
1110
import android.graphics.Rect;
12-
import android.os.Build;
1311
import android.view.View;
1412
import androidx.annotation.NonNull;
1513
import androidx.annotation.Nullable;
@@ -203,7 +201,6 @@ public void setNativeBackground(ReactViewGroup view, @Nullable ReadableMap bg) {
203201
: ReactDrawableHelper.createDrawableFromJSDescription(view.getContext(), bg));
204202
}
205203

206-
@TargetApi(Build.VERSION_CODES.M)
207204
@ReactProp(name = "nativeForegroundAndroid")
208205
public void setNativeForeground(ReactViewGroup view, @Nullable ReadableMap fg) {
209206
view.setForeground(

0 commit comments

Comments
 (0)