Vizir/react-native-autocomplete-select

Making it work the hacky way

LaloHao opened this issue · 3 comments

First of all #4:
A bunch of these

This warning is caused by a @providesModule declaration with the same name across two different files.
Loading dependency graph, done.
warning: the transform cache was reset.

Unable to resolve module `AccessibilityInfo` from `./node_modules/react-native/Libraries/react-native/react-native-implementation.js`: Module does not exist in the module map

Fixed by deleting the react-native folder inside the module #4 (comment)
rm -r ./node_modules/react-native-autocomplete-select/node_modules/react-native

After that you might get:

FAILURE: Build failed with an exception.

* What went wrong:
Could not list contents of './node_modules/react-native-autocomplete-select/node_modules/.bin/react-native'.

You also need to delete that file
rm ./node_modules/react-native-autocomplete-select/node_modules/.bin/react-native

Also apply 9194061 but don't forget to add prop-types to package.json

This bug has been driving me crazy, would be nice to fix it soon. Thank you!

Could we merge the pull request anyone?

It either works for React > 16 or React < 16, it breaks the other as far as i can remember, the change was reverted in the last commits a841630 5edfd99

you might have luck installing the version prior to this
npm i --save Vizir/react-native-autocomplete-select#9194061