I am learning react native. When installing the app in simulator, i am facing an issue which is following. Please provide any solution.
If i install react-native-pager-view then it throws error. And when i uninstalled it. It is throwing following error-:
Unable to resolve module react-native-pager-view in the root directory.
CodePudding user response:
Try running this command:
rm -rf yarn.lock node_modules ios/Pods ios/Podfile.lock && yarn install && cd ios && pod install && cd ..
CodePudding user response:
I solved this problem by doing pod install and removing some other dependencies. I install and uninstall this dependency several times. Finally i deleted this and at last it works. Restart vs code.