fengliu222 / react-native-swipe-hidden-header

A react native component that can hide navigator bar when user swipe list.
51 stars 13 forks source link

Unable to resolve module `AccessibilityInfo` from "/node_modules/react-native-swipe-hidden-header" #2

Open devLaaziz opened 7 years ago

devLaaziz commented 7 years ago

simulator screen shot 3 juin 2017 14 17 00

peacechen commented 7 years ago

react and react-native should not be in this library's dependencies. It causes npm to install additional libs nested under its local node_modules which conflict with the parent project's node_modules.

The fix is to move react and react-native to devDependencies. See PR #3

damikdk commented 7 years ago

I have same issue using yarn. Should I install this lib directly from this repo?

peacechen commented 6 years ago

The fix was merged but a new version hasn't been published to npm. You'll need to point directly to this repo in your package.json.