I have followed all of the steps in the documentation. I am getting this error in iOS.
Using:
import LinearGradient from 'react-native-linear-gradient';
I got this but had missed the step:
Add libBVLinearGradient.a to Build Phases -> Link Binary With Libraries.
Please keep in mind that the project uses a native dependency and you need to rebuild the app for the gradient to work. Also, make sure that you use latest version of react-native-cli package before linking.
Refer to this comment for possible solutions: https://github.com/react-native-community/react-native-linear-gradient/issues/143#issuecomment-290397879.
You have to run project for solve this error.
react-native run-android
For IOS I had to manually set up dependencies as described in the readme and it works.
thanks @kuldeepoza14
Most helpful comment
You have to run project for solve this error.
react-native run-android