question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The dropdown picker scroll inside another scroll is not working

See original GitHub issue

Describe the bug The dropdown picker scroll inside another scroll is not working

To Reproduce Steps to reproduce the behavior:

Place ScrollView above DropdownPicker:

<View style={{ flex: 1 }}>
                    <ScrollView nestedScrollEnabled={true} horizontal={false}>
                        <View style={{ width: 200, height: 200 }}></View>
                        <View style={{ width: 200, height: 200 }}></View>
                        <DropDownPicker
                            items={allCategories}
                            searchable={true}
                            searchablePlaceholder="Search"
                            searchableError={() => <CText fontSize={16}>Not found</CText>}
                            searchableStyle={{ fontSize: 18 }}
                            defaultValue={productCategory}
                            containerStyle={{ height: 40 }}
                            style={{ backgroundColor: '#fafafa' }}
                            dropDownStyle={{ backgroundColor: '#fafafa' }}
                            dropDownMaxHeight={300}
                            labelStyle={{ fontSize: 20 }}
                            itemStyle={{
                                justifyContent: 'flex-start'
                            }}
                        />
                        <View style={{ width: 200, height: 200 }}></View>
                        <View style={{ width: 200, height: 200 }}></View>
                        <View style={{ width: 200, height: 200 }}></View>
                        <View style={{ width: 200, height: 200 }}></View>
                        <View style={{ width: 200, height: 200 }}></View>
                        <View style={{ width: 200, height: 200 }}></View>
                        <View style={{ width: 200, height: 200 }}></View>
                    </ScrollView>
  </View>
  • OS: Android
  • Package version 3.1.9

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:23 (2 by maintainers)

github_iconTop GitHub Comments

117reactions
Paramesh98commented, Jun 21, 2021

Hi, I had the same issue, the library provides listMode props. Adding this props solved my issue.

 listMode="SCROLLVIEW"
        scrollViewProps={{
          nestedScrollEnabled: true,
  }}

check this documentation for more information https://hossein-zare.github.io/react-native-dropdown-picker-website/docs/next/advanced/list-modes#scrollviewprops

8reactions
ankushShetty1993commented, Nov 17, 2020

Hi,

I’m unable to scroll the Dropdown item list, If I place the Dropdown inside the scrollview. I need to show 15 dropdown in one single screen. As you can see in the below screenshot “Filter Thickness (in)” consists of more than 4 items. If I try to scroll Dropdown item list it’s not scrolling instead complete screen will scroll.

any workaround or any solution for this? Please let me know. Many thanks in advance.

WhatsApp Image 2020-11-17 at 8 40 47 PM

I am also facing the same issue!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native-dropdown-picker scroll inside another scroll is not ...
If you are facing issue with nested scrolling. Use ScrollView of react-native-gesture-handler with nestedScrollEnabled={ ...
Read more >
List Modes | React Native Dropdown Picker - GitHub Pages
If this happens to you and you only have a few items, consider using the SCROLLVIEW mode. Otherwise you have to use the...
Read more >
Scrolling through Dropdown-Menu Does Not Work ... - Support
Open the Windows Settings by clicking on the gearwheel symbol in the Windows Start Menu.
Read more >
react-native-dropdown-picker bug - Expo Snack
react-native-dropdown-picker bug. zIndex and zIndexInverse not working with disabled prop for multiple pickers. Open with Expo Go. Open in editor ...
Read more >
CSS Drop Down Menu hidden behind horizontal scrollbar
That won't work I'm afraid as the scrollbar is only the mechanism that allows you to scroll. It's the overflow:auto that stops the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found