Vizir / react-native-autocomplete-select

AutoComplete with selection for react-native
MIT License
67 stars 23 forks source link

Making it work the hacky way #9

Open LaloHao opened 6 years ago

LaloHao commented 6 years ago

First of all https://github.com/Vizir/react-native-autocomplete-select/issues/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 https://github.com/Vizir/react-native-autocomplete-select/issues/4#issuecomment-348342922 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 https://github.com/Vizir/react-native-autocomplete-select/commit/919406137a595fe4540580a6529fea4a2e9d98ca but don't forget to add prop-types to package.json

hugoh59 commented 6 years ago

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

hugoh59 commented 6 years ago

Could we merge the pull request anyone?

LaloHao commented 6 years ago

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 https://github.com/Vizir/react-native-autocomplete-select/commit/a8416307c12eddf3449c2977490f335d88e7b984 https://github.com/Vizir/react-native-autocomplete-select/commit/5edfd9925f945335a3b7a0b64a674d382bc9225c

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