Uh oh!
There was an error while loading. Please reload this page.
Make bounds and resizeMode of gif network images respond to styles - #353
Make bounds and resizeMode of gif network images respond to styles#353brentvatne wants to merge 4 commits into
Conversation
vjeux
commented
Mar 27, 2015
There was a problem hiding this comment.
I think this line is unnecessary but I may be wrong.
There was a problem hiding this comment.
If I remove it then the image does not show up at all, so it seems necessary
brentvatne
commented
Mar 27, 2015
@a2 - thanks for the feedback, let me know if there's anything else you'd like me to do here! |
There was a problem hiding this comment.
Basically we don't currently support @2x or @3x GIFs so maybe change the contentsScale to 1.0? Or, if you want to keep RCTScreenScale(), we need to add that support, maybe by checking the filename suffix before the extension.
There was a problem hiding this comment.
@a2 - good point, let's just make this 1.0 and we can open a separate issue for @2x+ support if you like
a2
commented
Mar 27, 2015
👍 |
sahrens
commented
Apr 1, 2015
Merged internally and synced. |
Summary: @vjeux and I were discussing this in irc an discovered that network gif images did not respond how they should to width, height or flex properties. Along the way I also noticed that the scale was not changing depending on the device. This PR fixes that, so now you can do `flex: 1` on a gif image to have it stretch to the whole screen. [Minimum reproducible example here](https://gist.github.com/brentvatne/f745377b0789162a28df) - try this without and then with the changes of this PR to see. Closesreact#353 Github Author: Brent Vatne <brent.vatne@madriska.com> Test Plan: Imported from GitHub, without a `Test Plan:` line.
Summary: @vjeux and I were discussing this in irc an discovered that network gif images did not respond how they should to width, height or flex properties. Along the way I also noticed that the scale was not changing depending on the device. This PR fixes that, so now you can do `flex: 1` on a gif image to have it stretch to the whole screen. [Minimum reproducible example here](https://gist.github.com/brentvatne/f745377b0789162a28df) - try this without and then with the changes of this PR to see. Closesreact#353 Github Author: Brent Vatne <brent.vatne@madriska.com> Test Plan: Imported from GitHub, without a `Test Plan:` line.
Summary: @vjeux and I were discussing this in irc an discovered that network gif images did not respond how they should to width, height or flex properties. Along the way I also noticed that the scale was not changing depending on the device. This PR fixes that, so now you can do `flex: 1` on a gif image to have it stretch to the whole screen. [Minimum reproducible example here](https://gist.github.com/brentvatne/f745377b0789162a28df) - try this without and then with the changes of this PR to see. Closesreact#353 Github Author: Brent Vatne <brent.vatne@madriska.com> Test Plan: Imported from GitHub, without a `Test Plan:` line.
@vjeux and I were discussing this in irc an discovered that network gif images did not respond how they should to width, height or flex properties. This PR fixes that, so now you can do
flex: 1on a gif image to have it stretch to the whole screen. Minimum reproducible example here - try this without and then with the changes of this PR to see.