React-native-linear-gradient: Warning: Native component for "BVLinearGradient" does not exist

Created on 15 Mar 2017  路  5Comments  路  Source: react-native-linear-gradient/react-native-linear-gradient

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';

Most helpful comment

You have to run project for solve this error.
react-native run-android

All 5 comments

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

Was this page helpful?
0 / 5 - 0 ratings