Menu component showing scrollbar indicator

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

維護者通常 3 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
58/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
停滯
技術堆疊
react-native, typescript
領域
mobile

研究方向

從 src/components/Menu/Menu.tsx 開始,檢查 Menu 具有可捲動高度時使用的 ScrollView。以提供的 diff 作為預期行為:Menu 不應再顯示垂直捲軸指示器。檢查 repository 中現有的 Menu 覆蓋情況(如果有),並在支援的平台上驗證此行為。

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

描述

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

🔺️🔺️🔺️ Adding showsVerticalScrollIndicator to Menu component does not disable the scrollbar indicator 🔺️🔺️🔺️

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-paper/src/components/Menu/Menu.tsx b/node_modules/react-native-paper/src/components/Menu/Menu.tsx
index 82fbdf4..8632b98 100644
--- a/node_modules/react-native-paper/src/components/Menu/Menu.tsx
+++ b/node_modules/react-native-paper/src/components/Menu/Menu.tsx
@@ -663,6 +663,7 @@ class Menu extends React.Component<Props, State> {
                   {(scrollableMenuHeight && (
                     <ScrollView
                       keyboardShouldPersistTaps={keyboardShouldPersistTaps}
+                      showsVerticalScrollIndicator={false}
                     >
                       {children}
                     </ScrollView>

This issue body was partially generated by patch-package.

主要語言
TypeScript
星號
14.5k
分支
2.3k
平均合併
8 天 7 小時
30 天內合併 PR
5

環境準備

從這裡開始

  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 摘要。