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

feat: modernize BottomNavigationBar

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

維護者通常 7 天內回覆

@burczu 已經在處理了。

開始於 2026年6月18日。

  • #5006 來自 @burczu —— 未關閉

評估

難度
5/5
預估耗時
一週以上
新手友好度
35/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
冷清
技術堆疊
react-native, typescript
領域
design, mobile

研究方向

從現有的 BottomNavigation 和 BottomNavigation.Bar 進入點開始,接著將它們目前的行為與連結的 Material 3 navigation bar 和 expressive 規格進行比較。檢視列出的色彩、尺寸和行為差異,包括重新命名為 NavigationBar;當清單中的項目都已處理且 MD3 行為已一致實作時,即表示完成。

由索引模型根據 Issue 內容生成。

描述

v6

Modernize the existing BottomNavigationBar to reuse theme tokens (color, shape, motion, typography etc) and make sure the MD3 specs are respected. See the expressive update too: https://m3.material.io/components/navigation-bar/overview

Current State

Bottom Navigation

MD3 spec: Navigation bar
Specs link: https://m3.material.io/components/navigation-bar/specs

Notes
  • BottomNavigation is a router-aware wrapper around BottomNavigation.Bar that handles scene management and tab transitions. MD3 compliance is governed by BottomNavigation.Bar below.

Bottom Navigation Bar

MD3 spec: Navigation bar
Specs link: https://m3.material.io/components/navigation-bar/specs

Color tokens
  • Container surfaceContainer ✅
  • Active icon onSecondaryContainer ✅
  • Active indicator secondaryContainer ✅
  • Inactive icon onSurfaceVariant ✅
  • Inactive label onSurfaceVariant ✅
  • Active label uses onSurface. Spec token Nav bar item active label text color maps to secondary
Spacing / sizing
  • Active indicator 64x32dp with 16dp corner radius ✅
  • Icon-to-label gap 4dp (marginBottom: 4 on icon container) ✅
  • v3NoLabelContainer height is hardcoded to 80dp. Spec requires 64dp
  • BAR_HEIGHT = 56 constant is used for label height styling. Spec bar height is 64dp
Behavior
  • shifting mode (inactive tabs hide labels) is an MD2 pattern not present in MD3
  • labeled={false} hides all labels (not in MD3 spec, but a deliberate extension used by Google’s own products e.g. Gmail) ✅
  • rippleColor: 'transparent' suppresses state layer feedback. MD3 requires visible state layers (8% hovered, 10% focused/pressed)
  • Flexible navigation bar (horizontal items for medium windows) not implemented. M3 Expressive requires horizontal layout support
  • Baseline navigation bar is not recommended in M3 Expressive; flexible variant should replace it
Notes
  • Rename to match MD3: NavigationBar
主要語言
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 摘要。