callstack / callstack/react-native-paper

feat: integrate PlatformColor with alpha to replace stateLayerPressed

Offen
#4,972 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @adrcotfas Auf GitHub ansehen
v6
Vorherrschende Sprache
TypeScript
Sterne
14.5k
Forks
2.2k
Ø Merge
5 T. 23 Std.
Gemergte PRs (30 T.)
12

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.