callstack / callstack/react-native-paper

feat: integrate PlatformColor with alpha to replace stateLayerPressed

Open
#4,972 0 comments 0 reactions 1 assignee Claimed by @adrcotfas View on GitHub
v6
Dominant language
TypeScript
Stars
14.5k
Forks
2.2k
Avg merge
5d 23h
Merged PRs (30d)
12

Description

We're currently using a pre-computed state layer color at press opacity (0.10) used for ripple effects. It avoids runtime alpha manipulation which was incompatible with `PlatformColor` on Android before RN 0.86.
Since RN 0.86, we can now have full support for the MD3 specs + DynamicColor (`PlatformColor` + alpha).

Buttons of all kinds (regular, icon, FABs etc) are one example of components that need a custom ripple color.
The goal is to replace `ThemeColors.stateLayerPressed` with a proper ripple treatment.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.