callstack / callstack/react-native-paper

feat: integrate PlatformColor with alpha to replace stateLayerPressed

Đang mở
#4,972 0 bình luận 0 reaction 1 người được giao Được @adrcotfas nhận Xem trên GitHub
v6
Ngôn ngữ chính
TypeScript
Star
14.5k
Fork
2.2k
Merge trung bình
5 ngày 23 giờ
Pull request đã merge (30 ngày)
12

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.