From 0d07339a6f2c98a5f0e0e0b7c0b38b2d3a130828 Mon Sep 17 00:00:00 2001 From: David Vacca <515103+mdvacca@users.noreply.github.com> Date: Wed, 27 Sep 2023 18:00:26 -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 changelog: [Android][Breaking] Remove support for Android API < 23 in ReactTextAnchorViewManager Reviewed By: NickGerleman Differential Revision: D48545519 fbshipit-source-id: 5b015e112caba5c3e0b77db93aedfbee192410c7 --- .../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 f683c24f74d760..867aac0d2f530b 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; @@ -118,10 +117,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")) {