Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Styled component not showing on ios

$
0
0

My react native app currently shows the correct css for android. But when I run the same app on my ios simulator it doesn't show all the correct css. I think for some reason it's not getting the styled() components?

Has anyone experienced a similar issue?

For example:

This would create a circle with a number in it in android:

const DIAMETER = 30const Number = styled(TextBold) <{ diameter: number }>`    width:${ props => `${props.diameter ?? DIAMETER}px;`}    height:${ props => `${props.diameter ?? DIAMETER}px;`}    fontSize:15px;    lineHeight:23px;    borderRadius:${ props => (props.diameter ?? DIAMETER) * 0.5}px;    textAlign:center;    textAlignVertical:center;  ${OrangeImageCss}`export {    Number}

But on ios it would only load the width and height but not the font size etc


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>