You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Android] border radius is not set for views that initially has a transparent background color and transitions to an opaque color #52415
On Android, if the background color of a view with border radius is toggled between a transparent and opaque color, the border radius is lost when transitioning from transparent to opaque.
Steps to reproduce
create a view with border radius
conditionally switch its background color from transparent to an opaque color
If I press on the blue container, it will switch a state value which toggles the background color from transparent to red. Notice that on Android the red container is square even though border radius is set:
Has anyone found a workaround for this? It seems that forcing re-render by setting a different key based on the state (e.g. <View key={isToggled}) does the trick but we don't want to do that for all buttons.
My temporary solution is to set a base backgroundColor on the dot to match my screen backgroundColor in order to make it seems invisible. With that, applying conditional backgroundColor will display the dot in perfect circle.
Not sure if this behaviour is intentional, but it’d be great if this could be fixed or clarified.
Description
On Android, if the background color of a view with border radius is toggled between a transparent and opaque color, the border radius is lost when transitioning from transparent to opaque.
Steps to reproduce
React Native Version
0.80.1
Affected Platforms
Runtime - Android
Output of
npx @react-native-community/cli infoStacktrace or Logs
MANDATORY Reproducer
https://github.com/itsramiel/BorderRadiusAndroid
Screenshots and Videos
Given the following app(same as reproducer):
Example App
If I press on the blue container, it will switch a state value which toggles the background color from transparent to red. Notice that on Android the red container is square even though border radius is set:
Recording
Screen.Recording.2025-07-04.at.9.04.08.AM.mov
Screen.Recording.2025-07-04.at.9.03.45.AM.mov