Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

refactor(snackbar): modernize layout and action API

Đang mở
#4,932 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@azizbecha đang làm issue này rồi.

Từ ngày 12/5/2026.

Đánh giá

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

Mô tả

v6

Refactor SnackBar 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 action rendering model
  • Improve responsiveness and multiline behavior
  • Improve MD3 tonal surface handling
  • Improve animation consistency

Proposed API Direction

<Snackbar visible message="Changes saved" action={{ label: 'Undo', onPress }} />

Performance Opportunities

  • Reduce animated subtree complexity
  • Improve portal rendering behavior
  • Reduce unnecessary visibility transitions
Ngôn ngữ chính
TypeScript
Star
14.5k
Fork
2.2k
Merge trung bình
3 ngày 22 giờ
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của callstack/react-native-paper

Tất cả issue của callstack/react-native-paper

Issue tương tự

Thêm issue về TypeScript

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.