- Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
Images are load as follow
const Images = { level1: require('../Images/Levels/1.png'), level2: require('../Images/Levels/2.png'), level3: require('../Images/Levels/3.png'), .... and they are used as follow
<FastImage style={{flex: 1, height: undefined, width: undefined}} source={Images[`level${id}`]} resizeMode={FastImage.resizeMode.contain} /> Everything is fine till the moment I added some images. From that moment (on Android, not sure about IOs) after I released on the store all images got mixed.
Uninstalling and installing the app fix the problem, meaning it's a caching issue. I checked a second device to be sure and the issue was the same, I tried switching to
<FastImage style={{flex: 1, height: undefined, width: undefined}} source={{ uri: Image.resolveAssetSource(Images[`level${id}`]).uri }} resizeMode={FastImage.resizeMode.contain} /> but it didn't fix it.
I don't know if it's a bug or I'm doing something wrong, and I know it's hard to reproduce. If you have any idea of what I can try I can give it a go
Maddoc42
Metadata
Metadata
Assignees
Labels
No labels