Hi, attempting to use LinearGradient as so:
import {LinearGradient} from '@shoutem/ui'
...
render() { return (
<LinearGradient colors={['#4c669f', '#3b5998', '#192f6a']} style={{flex: 1}}></LinearGradient>
)}
...
This is the error I get at react-native run-android:
Invariant Violation: requireNativeComponent: "BVLinearGradient" was not found in the UIManager.
I have tried npm uninstall react-native-linear-gradient & npm install react-native-linear-gradient & react-native link etc. with no success'?
Can anyone provide me with some assistance?
Thanks!
@visagegod I just hit this error too, after upgrading my version of RN and of react-native-linear-gradient.
It seems the link command isn't working properly, and you need to install it manually - particularly the Link Binary With Libraries part.
My god! I have the same question.
anyone, please solve this error :(
Hey, guys, have you solved this problem, and I have. The 'BVLinearGradient' was lost at reactNative
271/5000
Just add "BVLinearGradient" in xcode libs.
You can drag the BVLinearGradient.xcodeproj file from the node_modules / react-native-linear-gradient for your project libraries in xcode and then add the lib in General> Linked Frameworks and Libraries.

Closing issue because noone should be using shoutem/ui, very out of date library and looks like no dev activity
All I had to do is run the command "react-native run-ios" again to fix the issue.
after all that just try to run "react-native run-android" again
Most helpful comment
271/5000
Just add "BVLinearGradient" in xcode libs.
You can drag the BVLinearGradient.xcodeproj file from the node_modules / react-native-linear-gradient for your project libraries in xcode and then add the lib in General> Linked Frameworks and Libraries.