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

Transparent images not showing in Image component

$
0
0

Trying to display an image that has a transparent background on an expo app (code is below) but it doesn't seem to want to show. It takes up the given dimensions but the actual image is not showing. The file format is png

Tested it with a jpg, transparent background is now white - works without any issues.

<Image   source={require('../../assets/categoryIcons/Hotpot.png')}   style={{height: 52, width:52}}/>

Is this a bug? or is there something that's I'm completely missing?


Viewing all articles
Browse latest Browse all 6213

Trending Articles



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