Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

refactor(snackbar): modernize layout and action API

未關閉
#4,932 1 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

維護者通常 7 天內回覆

@azizbecha 已經在處理了。

開始於 2026年5月12日。

  • #5135 來自 @grzegorzkruk —— 未關閉

評估

這個 Issue 還沒有評估資料。

描述

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
主要語言
TypeScript
星號
14.5k
分支
2.3k
平均合併
6 天 2 小時
30 天內合併 PR
1

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

callstack/react-native-paper 的其他 Issue

查看 callstack/react-native-paper 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。