Files
react-native/ReactCommon
Samuel Susla 91468b76c6 Download image of size based on image view size, not image size
Summary:
Changelog: [internal]

Fabric asks server for images of their real size and scale, not images of size that they would take up on the screen once rendered. Also scale of the screen is incorrect. This causes images to be twice as large as they have to be.

Look at the size of the first image size here in Paper, it is `{310.5, 207}`.
{F235394066}

If you compare it with Fabric, there it is `{800, 381}`
{F235394115}

It isn't just the size, but scale of request image as well. Fabric always asks for image of scale 1, unlike Paper which takes screen scale into account.

Reviewed By: shergin

Differential Revision: D21255794

fbshipit-source-id: 9db3ccafec1c09cedc5db5ac0a435a28a4c30c85
2020-05-12 11:10:21 -07:00
..
2020-05-08 00:36:17 -07:00
2020-05-08 00:36:17 -07:00
2020-05-08 00:36:17 -07:00
2020-05-11 10:24:35 -07:00
2020-05-08 00:36:17 -07:00
2020-04-07 19:07:19 -07:00