flatlogic / react-native-starter

🚀A powerful react native starter template that bootstraps development of your mobile application
https://reactnativestarter.com
Mozilla Public License 2.0
2.22k stars 712 forks source link

ModalDropdown uses deprecated ListView #76

Open mbc-audiovisuales opened 3 years ago

mbc-audiovisuales commented 3 years ago

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

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

Using react@16.11.0 react-native@0.62.2

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

deprecated-react-native-listview@0.0.7

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

mcaninci commented 3 years ago

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');