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

ModalDropdown uses deprecated ListView #76

Closed
mbc-audiovisuales opened this issue Feb 25, 2021 · 1 comment
Closed

ModalDropdown uses deprecated ListView #76

mbc-audiovisuales opened this issue Feb 25, 2021 · 1 comment

Comments

@mbc-audiovisuales
Copy link

I get the following error
Invariant Violation: ListView has been removed from React Native.

'In ModalDropDown (at Dropdown.js:78)'

Using
[email protected]
[email protected]

and Metro says to me:

Please update the following components: ModalDropdown

So I guess it is no longer valid to use ListViews as I have the proper suggested package installed

[email protected]

but unable to be somehow seen by the app to be used.

@mcaninci
Copy link

I got same issue. But I upgraded deprecated-react-native-listview with 0.0.7 version, it didnt solve.Im sharing error description below. I tried some solutions such as drop version to react native.This time I got another error related to it.Can anybody help to me ? I think react native version not suitable with dropdown.

error: Error: Unable to resolve module react-native/Libraries/vendor/core/isEmpty from react-native-starter/node_modules/react-native-modal-dropdown/node_modules/deprecated-react-native-listview/index.js: react-native/Libraries/vendor/core/isEmpty could not be found within the project.

If you are sure the module exists, try these steps:

  1. Clear watchman watches: watchman watch-del-all
  2. Delete node_modules and run yarn install
  3. Reset Metro's cache: yarn start --reset-cache
  4. Remove the cache: rm -rf /tmp/metro-*
    22 | const cloneReferencedElement = require('react-clone-referenced-element');
    23 | const createReactClass = require('create-react-class');

24 | const isEmpty = require('react-native/Libraries/vendor/core/isEmpty');

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