When I created my application, the images I placed worked perfectly and loaded normally.
Later, connect to the server and there are images that I have to display through url. As a large list, there are many images that must be downloaded causing all the images of the app (buttons, logos, etc) to enter a kind of thread, which causes this problem.
Adding image code:
<Image source={buttonAddToCart} style={styles.buttonIncrease} />
and buttonAddToCart
is a import.
import buttonAddToCart from '../../assets/images/buttonAddToCart.png';
the styles.buttonIncrease
buttonIncrease: {
backgroundColor: 'transparent',
height: 60,
width: 60,
marginTop: 35,
},
Example when load image by
uri
<Image
source={{ uri: category.image_url }}
style={styles.categoryPicture}/>