react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Loading Images From Bundle Broken in IOS 10

Open myusuf3 opened this issue 10 years ago • 7 comments

This was previously working before beta 2, now using the previous API to load images from the bundle. We are now currently seeing this following

we are using the following syntax for loading images.

<Image
source={require('../images/heart.png')}
style={styles.heartIconImage} />

image

myusuf3 avatar Jul 05 '16 19:07 myusuf3

@facebook-github-bot label iOS

myusuf3 avatar Jul 05 '16 19:07 myusuf3

We are doing resizeMode: 'stretch' on some of these, I wonder if that is causing some new issues. Besides that everything is very straightforward. Just some simple png-24's.

cardIconImage: {
    height: 48,
    width: 48,
    resizeMode: 'stretch',
}

aprilzero avatar Jul 06 '16 01:07 aprilzero

Do loading images from xcode assets still works? (require('image!asset_id'))?

janicduplessis avatar Jul 06 '16 05:07 janicduplessis

@janicduplessis that was removed in previous react version.

myusuf3 avatar Jul 06 '16 17:07 myusuf3

Update: this seems to just be a problem with any png transparency in iOS10 Beta 2.

aprilzero avatar Jul 08 '16 21:07 aprilzero

Fixed in iOS 10 beta 4 (Developer)

eduardinni avatar Aug 01 '16 21:08 eduardinni

👍

janicduplessis avatar Aug 01 '16 21:08 janicduplessis