Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image works on iOS, but not on Android #11691

Closed
luco opened this issue Jan 2, 2017 · 4 comments
Closed

Image works on iOS, but not on Android #11691

luco opened this issue Jan 2, 2017 · 4 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@luco
Copy link

luco commented Jan 2, 2017

This Image code loads a 500x500 image on iOS. Works pretty well. But not Android.

<Image source={{uri: data.product.image}} style= {{ height:80, width: 80 }} resizeMode={Image.resizeMode.contain}/>

It seems that the image should be no more than 80 pixels, in this case. If I put a 80x80 image uri, it works.

Any tips?
Thanks

@ericvicenti
Copy link
Contributor

Does this happen for every resizeMode, or just contain? Can you experiment a bit to figure out exactly when the image doesn't appear, then update the issue title?

@colin3dmax
Copy link

colin3dmax commented Jan 3, 2017

This issues is opened blew
#10569

@ericvicenti
Copy link
Contributor

Ah ok it looks like the same issue. Closing this one so we can track it in #10569

@facuescobar
Copy link

This fixed this problem on my project!

android:largeHeap="true" 

#10569 (comment)

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants