From feeacfeeb5088a00d8bbda8d3f2bb13277857cb7 Mon Sep 17 00:00:00 2001 From: David Vacca <515103+mdvacca@users.noreply.github.com> Date: Tue, 26 Sep 2023 13:51:00 -0700 Subject: [PATCH] Remove support for Android API < 23 in ReactTextAnchorViewManager (#39676) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39676 Since minsdk version was increased to 23, we are deleting code using Android APIs < 23 for class ReactTextAnchorViewManager chnagelog: [Android][Breaking] Remove support for Android API < 23 in ReactTextAnchorViewManager Reviewed By: NickGerleman Differential Revision: D48545519 fbshipit-source-id: 3eed82e368c7a29f190ac6a1466274f440d039a2 --- .../react/views/text/ReactTextAnchorViewManager.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java index 679bcf47102bbf..73adfeec117391 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java @@ -7,7 +7,6 @@ package com.facebook.react.views.text; -import android.os.Build; import android.text.Layout; import android.text.Spannable; import android.text.TextUtils; @@ -128,10 +127,6 @@ public void setSelectionColor(ReactTextView view, @Nullable Integer color) { @ReactProp(name = "android_hyphenationFrequency") public void setAndroidHyphenationFrequency(ReactTextView view, @Nullable String frequency) { - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { - FLog.w(TAG, "android_hyphenationFrequency only available since android 23"); - return; - } if (frequency == null || frequency.equals("none")) { view.setHyphenationFrequency(Layout.HYPHENATION_FREQUENCY_NONE); } else if (frequency.equals("full")) {