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][Fabric] enablePropsUpdateReconciliationAndroid conflates transparent color with undefined value #58085
With Props 2.0 enabled, 'transparent' set at mount is silently dropped. The component renders as if the color was never set, falling back to theme default.
The color representation on Android cannot differentiate undefined from explicitly set 'transparent'; HostPlatformColor::UndefinedColor is 0 as well as processColor('transparent'). The diffing mechanism for SharedColor compares the raw Color which is an integer, so the prop update isn't triggered.
ensure than Props 2.0 override works - in Logcat you should see enablePropsUpdateReconciliationAndroid=true log.
The example presents 2 different ways of achieving transparent thumb color for Switch component. If 'transparent' special value is used - the thumb color remains non-transparent. For any color with alpha=0 - the thumb color is updated.
Activity
Distinguish transparent colors from undefined props (react#58093)
Distinguish transparent colors from undefined props (react#58093)