React-native-linear-gradient: red box on iphone 4s?

Created on 20 Jun 2017  路  4Comments  路  Source: react-native-linear-gradient/react-native-linear-gradient

There is red box around the LinearGradient component andI am seeing only on the 4s (9.3). I am using like below. What are the possible reasons?

. <LinearGradient colors={...} style={styles.gradient} > <View style={styles.container}> .... </View> </LinearGradient>

React Native: 0.42
React native linear gradient: 2.0.0

Most helpful comment

Did you rebuilt the Xcode project, after you added linear-gradient? I had the same issue, I solved it just running react-native run-iosso it rebuilt the project.

All 4 comments

Did you rebuilt the Xcode project, after you added linear-gradient? I had the same issue, I solved it just running react-native run-iosso it rebuilt the project.

Had the same problem on iPad Air 2 Simulator, thanks @ulentini

I am facing the same problem on Android.
I've already rebuilt the project but didn't solve the problem.

link error

Was this page helpful?
0 / 5 - 0 ratings