Skip to content

Commit

Permalink
Remove support for Android API < 23 in ReactViewManager (#39678)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mdvacca authored and facebook-github-bot committed Sep 29, 2023
1 parent 120aab2 commit cb46f4c
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit cb46f4c

Please sign in to comment.