I'm trying to implement react-native-linear-gradient but I get the following error once I import the library into my react-native component:
import LinearGradient from 'react-native-linear-gradient'
I can successfully compile the project in XCode and the gradient shows up on the physical iPhone but it doesn't in the Simulator.
Has anyone dealt with this problem before?
Again, the problem is that react-native (iOS Simulator) can't find the library but the BVLinearGradient library are there in Xcode and the project compiles successfully.
Thanks
I see you're using RN 0.6.x, so you don't have to link. You ought to go iOS direction and run this command.
"pod install"
And you should read README of linear gradient carefully for iOS integration.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With