callstack / callstack/react-native-paper

refactor(chip): improve selection model and MD3 compliance

Đang mở
#4,931 1 bình luận 0 reaction 0 người được giao 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ả

Refactor Chip to improve Material Design 3 compliance, remove problematic children patterns, improve performance characteristics, and modernize the public API.

**Problems**

- Current API relies heavily on children composition in ways that are difficult to optimize
- Internal layout logic is tightly coupled to arbitrary child structures
- MD3 behaviors and visuals are not fully aligned with current Material guidelines
- Rendering performance can degrade in large lists or frequently updated screens
- Type safety and discoverability of the API can be improved
- The component has inconsistent behavior between platforms and edge cases

**Focus Areas**

- Improve selected/outlined/filter states
- Improve icon/avatar handling
- Simplify content rendering
- Improve touch target sizing
- Improve state layer implementation

**Proposed API Direction**

Move toward explicit label APIs:

``

**Performance Opportunities**

- Reduce animation overhead
- Avoid child inspection
- Improve memoization
- Simplify icon rendering path

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

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

Hướng nghiên cứu

Bắt đầu bằng cách xác định component Chip và API công khai hiện tại của nó, sau đó xem xét cách children, các trạng thái lựa chọn, icon hoặc avatar, vùng cảm ứng và state layers được xử lý. So sánh hành vi hiện có với các mục tiêu Material Design 3 đã nêu và đánh giá đề xuất về một API label tường minh. issue không nêu tên file hoặc test nào, và các tiêu chí hoàn thành vẫn còn rất rộng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
react-native, typescript
Lĩnh vực
design, frontend, mobile
Loại issue
Tái cấu trúc
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

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.