hungdev / react-native-instagram-login

a react native instagram login component (support android & ios). Pull requests are welcome!
https://www.npmjs.com/package/react-native-instagram-login
184 stars 103 forks source link

Change webview from dependencies to peerDependencies #84

Closed kh1msh0 closed 3 years ago

kh1msh0 commented 3 years ago

The situation was like this: I had already installed "react-native-webview" and installing "react-native-instagram-login" causes App crash. adding >>> "peerDependencies": {"react-native-webview": "^11.2.3"} in package.json solve this problem. It will be useful for future users too

Saurabhlanke commented 3 years ago

First of all check the version of react-native-webview in package.json and check the version of react-native-webview in nodemodules/react-native-instagram-login/package.json dependencies make sure both the version same if they arent make same as in root folder package.json react-native-webview version then delete react-native-webview folder from nodemodules/react-native-instagram-login/react-native-webview then run command react-native run-android it will work fine.

gauravmali556 commented 3 years ago

First of all check the version of react-native-webview in package.json and check the version of react-native-webview in nodemodules/react-native-instagram-login/package.json dependencies make sure both the version same if they arent make same as in root folder package.json react-native-webview version then delete react-native-webview folder from nodemodules/react-native-instagram-login/react-native-webview then run command react-native run-android it will work fine.

its working ...! thanks

hungdev commented 3 years ago

@kh1msh0. thank you so much!