react-native-linear-gradient: requireNativeComponent: "BVLinearGradient" was not found in the UIManager.
Bug report
I am tried so many ways but not able to resolve this issue please help me.

Summary
Environment info
react-native info output:
# paste it here
Library version: x.x.x
Steps to reproduce
- …
- …
Describe what you expected to happen:
- …
- …
Reproducible sample code
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 10
- Comments: 31
Please,How to solve it on Android?
@hu-qi After installing package with npm, you have to rebuild your project, Just run:
npm run androidornpm run iosafter trying this you get your problem solved!! step 1- npm install expo-linear-gradient setp 2*- import { LinearGradient } from expo-linear-gradient step 3*- you can use both format now ,
<LinearGradient colors={[‘#7df3ff’,‘#05e6fc’,‘#00c1d4’]} style={{height:“45%”,width:“25%”, padding:10, borderRadius:10, marginLeft:“60%”,
-------------OR------------- <LinearGradient
colors={[‘#7df3ff’,‘#05e6fc’,‘#00c1d4’]} style={{ }} /> <View> {your code }</View>
Thank you !!!
Solve my issue.
Installing pod solved my issue
npm install react-native-linear-gradient --savecd ios && pod install && cd …step 1- npm install expo-linear-gradient setp 2- import { LinearGradient } from expo-linear-gradient
import linear-gradient using above code that error will resolve Its Worked For Me!
FULL CODE HERE!!!
import * as React from ‘react’; import { StyleSheet, Text, View } from ‘react-native’; import { LinearGradient } from ‘expo-linear-gradient’;
export default function App() { return ( <View style={styles.container}> <LinearGradient // Background Linear Gradient colors={[‘rgba(0,0,0,0.8)’, ‘transparent’]} style={styles.background} /> <LinearGradient // Button Linear Gradient colors={[‘#4c669f’, ‘#3b5998’, ‘#192f6a’]} style={styles.button}> <Text style={styles.text}>Sign in with Facebook</Text> </LinearGradient> </View> ); }
解决了吗,求助下
how to resolve this error in expo project.