folofse / androw

Shadows in React Native for Android
97 stars 16 forks source link

Fixed the render issue on android 7.0. #14

Closed thilek closed 4 years ago

thilek commented 5 years ago

Allowed super.dispatchDraw(canvas) always in dispatchDraw(canvas) .

msand commented 4 years ago

@folofse It seems this causes duplicate calls to dispatchDraw, and it doesn't call content.eraseColor(Color.TRANSPARENT); in between. I would also expect the canvas.drawBitmap(content, 0f, 0f, null); to be unnecessary at this point.

msand commented 4 years ago

Actually, nevermind the eraseColor thing, should be fine. But the drawBitmap with the content bitmap should be fine to remove.