Fix antialiasing for Facsimile on Android < 10 (#52069)

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

Noticed an E2E tests against old emulator version showed aliased Text against Facsimile. This is because non-scratch-paint path does not explicitly enable anti-aliasing (like TextView does), older versions of Android don't enable by default, and `updateTextPaint()` no longer sets, after call to `paint.reset()` was removed.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D76780749

fbshipit-source-id: 26f0de6d6558649fe08339f1ac91390bbd4cce3c
This commit is contained in:
Nick Gerleman authored and Facebook GitHub Bot committed 2025-06-17 10:51:23 -07:00
1 parent 331fab0683
commit ded4ae1f78
1 file changed
+1 -1
@@ -469,7 +469,7 @@ internal object TextLayoutManager {
baseTextAttributes: TextAttributeProps,
context: Context
): TextPaint {
val paint = TextPaint()
val paint = TextPaint(TextPaint.ANTI_ALIAS_FLAG)
updateTextPaint(paint, baseTextAttributes, context)
return paint
}