Skip to content

Commit 08f56c4

Browse files
committed
fix(android): cleanup
1 parent bb8b045 commit 08f56c4

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ public class ReactImageView(
378378
BackgroundStyleApplicator.applyClipPathIfPresent(this, canvas)
379379
}
380380

381-
super.onDraw(canvas)
381+
super.draw(canvas)
382382

383383
if (clipPath != null) {
384384
canvas.restore()

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/PreparedLayoutTextView.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ internal class PreparedLayoutTextView(context: Context) : ViewGroup(context), Re
119119
if (overflow != Overflow.VISIBLE) {
120120
BackgroundStyleApplicator.clipToPaddingBox(this, canvas)
121121
}
122+
123+
super.onDraw(canvas)
122124
canvas.translate(
123125
paddingLeft.toFloat(),
124126
paddingTop.toFloat() + (preparedLayout?.verticalOffset ?: 0f),

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ public open class ReactViewManager : ReactClippingViewManager<ReactViewGroup>()
351351
view.setNeedsOffscreenAlphaCompositing(needsOffscreenAlphaCompositing)
352352
}
353353

354-
355354
@ReactPropGroup(
356355
names =
357356
[

0 commit comments

Comments
 (0)