Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VirtualizedLists should never be nested inside plain ScrollViews with the same orientation - use another VirtualizedList-backed container instead. #410

Closed
mwegener-com opened this issue Sep 22, 2021 · 10 comments

Comments

@mwegener-com
Copy link

mwegener-com commented Sep 22, 2021

I'm not able to use this Picker inside a Scroll View. Do you have any idea?

JSX Code: https://pastebin.com/CScKnb5B

Bildschirmfoto 2021-09-22 um 16 58 17

@mikehardy
Copy link
Collaborator

use scrolllist mode as documented: https://hossein-zare.github.io/react-native-dropdown-picker-website/docs/advanced/list-modes#notes

duplicate #56

@christocracy
Copy link

Oh, so you've got your fingers dipped in this repo too? Nice docs. Do you know what's used to generate those?

@mikehardy
Copy link
Collaborator

Oh, so you've got your fingers dipped in this repo too? Nice docs. Do you know what's used to generate those?

Hey 👋 - Yeah, it's the only really cross-platform picker I saw that seemed reasonably maintained and did what I wanted - needed one for a commercial project and it won the bake-off. No idea on docs, I haven't used the repo for long, but they're out-of-tree in their own repo https://github.com/hossein-zare/react-native-dropdown-picker-website

@christocracy
Copy link

I'm rebuilding the BGGeo demo app from scratch. I'll prob render about 20 of these in a list for the Settings screen.

@mikehardy
Copy link
Collaborator

Mind that zIndex - I learned that I knew nothing of zIndex until I attempted to use this package, but it can work if you're careful - #376

@christocracy
Copy link

I'm just going to use MODAL mode. zIndex problem is moot, no?

@mikehardy
Copy link
Collaborator

I believe so, yes!

@christocracy
Copy link

Did you find lawnstarter/react-native-picker-select? LawnStarter is a long time customer of mine since 2015.

@mikehardy
Copy link
Collaborator

I saw a few like that, my UI requirements were non-modal / non-native appearance, they wanted dropdowns to dropdown right from the dropdown like a website select, and I wanted something that was pure js so that could work in react-native-web as well once I was familiar with the package

@christocracy
Copy link

christocracy commented Oct 17, 2021

from the dropdown like a website select

like this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants