dumbre-prasad / react-native-dropdown-autocomplete-textinput

Simple cross platform (Android/iOS) searchable and scrollable dropdown autocomplete textinput for React Native App!
11 stars 9 forks source link

Got warn: VirtualizedLists should never be nested inside plain ScrollViews with the same orientation, when use is inside scrollview #5

Open imwilliamxy opened 3 years ago

imwilliamxy commented 3 years ago

When I use react-native-dropdown-autocomplete-textinput inside a scrollview. get a warning:

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

My code: gist: https://gist.github.com/imwilliamxy/3f815eaf55d982be0e4ac1a1fe847f62 My env:

Expo CLI 4.1.6 environment info: System: OS: macOS 10.15.7 Shell: 5.7.1 - /bin/zsh Binaries: Node: 12.18.0 - ~/.nvm/versions/node/v12.18.0/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 7.0.10 - ~/.nvm/versions/node/v12.18.0/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.9.3 - /Users/johndoe/.rvm/gems/ruby-2.6.5/bin/pod SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 Android SDK: API Levels: 23, 24, 25, 26, 27, 28, 29 Build Tools: 28.0.2, 28.0.3, 29.0.3 System Images: android-23 | Google APIs Intel x86 Atom_64, android-25 | Google Play Intel x86 Atom, android-26 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom_64 IDEs: Android Studio: 4.0 AI-193.6911.18.40.6626763 Xcode: 12.4/12D4e - /usr/bin/xcodebuild npmPackages: expo: ^40.0.0 => 40.0.0 react: 16.13.1 => 16.13.1 react-dom: 16.13.1 => 16.13.1 react-native: https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz => 0.63.2 npmGlobalPackages: expo-cli: 4.1.6 Expo Workflow: managed

Tmsolutions commented 2 years ago

Having the same issue. One of my autocomplete works and the other doesn't :(

rvenky125 commented 1 year ago

I've fixed the issue, I'll create a PR if you are active.

rafael90cr commented 1 year ago

Could you please provide the solution for this? Having this issue for a couple days with no progress at all.