prscX / react-native-toasty

React Native: Native Toast
Apache License 2.0
153 stars 39 forks source link

[!] No podspec found for `RNToasty` in `../node_modules/react-native-toasty` #13

Closed fawad-khalil closed 5 years ago

fawad-khalil commented 5 years ago

I have install react-native-toasty using "react-native-toasty": "git+https://github.com/prscX/react-native-toasty.git" in package.json as indicated by this. Pod install succeeds after the npm installation. Then I do react-native link react-native-toasty and succeeds. But then if I do cd ios && pod install from the root of react-native project, it fails with the following error:

Fetching podspec for `RNToasty` from `../node_modules/react-native-toasty`
[!] No podspec found for `RNToasty` in `../node_modules/react-native-toasty`

Environment: react: 16.8.6 react-native: 0.60.4 react-native-toasty: git+https://github.com/prscX/react-native-toasty.git

fawad-khalil commented 5 years ago

So the .podspec file was being generated successfully but the address in <_project-root_>/ios/Podfile was being written as ../node_modules/react-native-toasty whereas the .podspec was being generated into ../node_modules/react-native-toast/ios. So I fixed the address and the pod install completed successfully.