Fix HasBetterKotlinAlternativeMethod: Use Kotlin joinToString in TextAttributeProps (#55505)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/55505

Replace `TextUtils.join(", ", features)` with Kotlin's idiomatic `features.joinToString(", ")` to fix the HasBetterKotlinAlternativeMethod lint warning. Also removed the now-unused `TextUtils` import while keeping the `TextUtils.TruncateAt` import that is still in use.

changelog: [internal] internal

Reviewed By: alanleedev

Differential Revision: D92021465

fbshipit-source-id: 3cb9e286f9f46f82817b0257dde73230ba2298d6
This commit is contained in:
David Vacca authored and meta-codesync[bot] committed 2026-02-12 23:24:00 -08:00
1 parent c8b633925f
commit cccc180f9d
1 file changed
+1 -2
@@ -9,7 +9,6 @@ package com.facebook.react.views.text
import android.os.Build
import android.text.Layout
import android.text.TextUtils
import android.text.TextUtils.TruncateAt
import android.util.LayoutDirection
import android.view.Gravity
@@ -238,7 +237,7 @@ public class TextAttributeProps private constructor() {
}
}
}
fontFeatureSettings = TextUtils.join(", ", features)
fontFeatureSettings = features.joinToString(", ")
}
private fun setFontWeight(fontWeightString: String?) {