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

resizeMode not working #47

Closed
Baptiste-Garcin opened this issue Jul 11, 2017 · 5 comments
Closed

resizeMode not working #47

Baptiste-Garcin opened this issue Jul 11, 2017 · 5 comments

Comments

@Baptiste-Garcin
Copy link

Hi,

The resizeMode props for image is not working (or maybe, I don't know how to use it)...

screenshot from 2017-07-11 22-53-33

Here is my component :
<Image style={ style.image__element } source={{uri: this.props.randomBeer.image_url }} indicatorProps={{ color: '#B53409', size: 'large' }} ></Image>

Here is my style :
image__element: { flex: 1, resizeMode: 'contain' }

Is there an alternative ?

Thanks

@michaelluk
Copy link

Try <Image style={ style.image__element } source={{uri: this.props.randomBeer.image_url }} indicatorProps={{ color: '#B53409', size: 'large' }} resizeMode='contain' />

@Baptiste-Garcin
Copy link
Author

Hi
I didn't try your solution but I am pretty sure it won't work... anyway, I fixed it and do a pull request (#49)

@AnthonyNTK
Copy link

adding resizeMode='contain' to <Image /> did solve the problem for me

@GalaxySystem
Copy link

Oh my god, it's does't work, how bad...

@jashwanth999
Copy link

it worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants