2

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}/>
jose920405
  • 7,982
  • 6
  • 45
  • 71

1 Answers1

1

I could not find a clear solution to this issue, I came across this react-native-cached-image library and it helped me a lot to camouflage this, although basically the problem remains

jose920405
  • 7,982
  • 6
  • 45
  • 71