Ui: Invariant Violation: requireNativeComponent: "BVLinearGradient" was not found in the UIManager.

Created on 7 Oct 2018  路  8Comments  路  Source: shoutem/ui

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!

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.

captura de tela 2019-01-16 as 08 37 13

All 8 comments

@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.

captura de tela 2019-01-16 as 08 37 13

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mypark picture mypark  路  8Comments

arudrakalyan picture arudrakalyan  路  9Comments

kreshnikalidema picture kreshnikalidema  路  5Comments

JulianKingman picture JulianKingman  路  4Comments

alejandronanez picture alejandronanez  路  9Comments