I have used margin style in older react native projects, no issues with that. Now I am creating new RN project - 0.60.5 version.
return(
<ImageBackground
style={{ flex: 1, alignItems: "center", justifyContent: "center" }}
source={require('../images/bgImage.png')}
>
<View style={{backgroundColor:"white",height:"8%",
borderRadius:5,width:"70%",marginTop:10}}>
</View>
</ImageBackground>
)
In above code, after adding marginTop
in View
component iOS app hang and displayed the log as
Ignoring bogus layer size (179769313), contentsScale 1.000000, backing store size
If I remove the marginTop
style , then the UI will be rendered.
Have anyone has idea about it in React Native iOS? How to solve this?