Skip to content

Menu component showing scrollbar indicatorย #4811

@Samuel-Momoh

Description

@Samuel-Momoh

Hi! ๐Ÿ‘‹

Firstly, thanks for your work on this project! ๐Ÿ™‚

Today I used patch-package to patch react-native-paper@5.12.3 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions