- Summary
There is an issue with color transition in LinearGradient when a solid background color is placed behind the gradient. The transition between colors appears visually uneven and not smooth.
App Name: Joyn
Bug Severity
Select one that applies
Impacts operation of app
Blocks current development
Improvement suggestion
Issue with documentation (If selected, please share the doc link and describe the issue)
Other
import LinearGradient from '@amazon-devices/react-linear-gradient';
...
{isMenuFocused ? <GradientBackground {...GRADIENT_PROPS} /> : null}
...
export const GRADIENT_PROPS = {
colors: ['#00191CFC', '#00191CE6', '#00000000'],
locations: [0.1, 0.62, 1],
start: { x: 0, y: 0 },
end: { x: 1, y: 0 },
};
When a LinearGradient is rendered on top of a solid background color, the color transition is not smooth. Instead of a seamless gradient, visible color banding/steps can be observed during the transition. This results in a noticeable visual artifact that degrades the overall UI appearance (see attached screenshot).
The gradient should blend smoothly into the underlying solid color without visible banding or abrupt transitions. Color interpolation should appear continuous and visually seamless.
The issue is especially noticeable on flat backgrounds and larger gradient areas, where the gradient is expected to fade naturally into the solid color.
4. Summary
Could you please recommend me how to improve the transition smoothness?
Or could you mind to validate if it is possible to improve inside the library the amount of transition steps on big gradinents (height 1080px; width 1054px)?

