surajitsarkar19 / react-native-radial-gradient

Radial gradient library for react native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

multiple dependencies with different sources for `SRSRadialGradient` in `Podfile`

seedwalk opened this issue · comments

commented

When i try to install cocoapods i get this

[!] There are multiple dependencies with different sources for `SRSRadialGradient` in `Podfile`:

- SRSRadialGradient (from `../node_modules/react-native-radial-gradient/ios`)
- SRSRadialGradient (from `../node_modules/react-native-radial-gradient`)
commented

fixed it by changed my pod file from

pod 'SRSRadialGradient', :path => '../node_modules/react-native-radial-gradient'

to

pod 'SRSRadialGradient', :path => '../node_modules/react-native-radial-gradient/ios'

any update

fixed it by changed my pod file from

pod 'SRSRadialGradient', :path => '../node_modules/react-native-radial-gradient'

to

pod 'SRSRadialGradient', :path => '../node_modules/react-native-radial-gradient/ios'

This worked

FWIW, moving to v1.1.5 seems to require that things revert back to the original:

pod 'SRSRadialGradient', :path => '../node_modules/react-native-radial-gradient'

If you don't revert it, you now get an error that SRSRadialGradient doesn't have a pod in that director (i.e. /ios).

Whereas the solution bi @crzycoder worked for me for a few years (thanks!).