Skip to content

Commit

Permalink
Remove support for Android API < 23 in ReactTextAnchorViewManager (fa…
Browse files Browse the repository at this point in the history
…cebook#39676)

Summary:
Pull Request resolved: facebook#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: 2b3596b17904bdbbdf2ea23ccb2d65097221504b
  • Loading branch information
mdvacca committed Sep 26, 2023
1 parent 7f2793c commit 6432edf
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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")) {
Expand Down

0 comments on commit 6432edf

Please sign in to comment.