mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Disable hasOverlappingRendering in PreparedLayoutTextView (#51549)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51549 This is copied from `ReactTextView`, with a comment explaining the shenanigans. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D75248328 fbshipit-source-id: b325cf05e0000ee0b0c5fb82f0e7412a680e5d01
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2c04b54c05
commit
628c1333ea
+5
@@ -278,6 +278,11 @@ internal class PreparedLayoutTextView(context: Context) : ViewGroup(context), Re
|
||||
return delegateHandled || super.dispatchKeyEvent(event)
|
||||
}
|
||||
|
||||
// This potentially a lie, to avoid clipping outside of layout bounds when we are translucent, at
|
||||
// the cost of incorrect alpha blending.
|
||||
// TODO T225199534: Add support for "needsOffscreenAlphaCompositing" to Text
|
||||
override fun hasOverlappingRendering(): Boolean = false
|
||||
|
||||
@RequiresApi(api = Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
|
||||
private object Api34Utils {
|
||||
private var highlightPaths: List<Path>? = null
|
||||
|
||||
Reference in New Issue
Block a user