Skip to content

[Image] resizeMode="cover" does not work correctly on macOS #316

@sahrens

Description

@sahrens

The resizeMode prop on the Image component does not work correctly - cover seems to behave the same as contains. This can easily be seen in the RNTester image example. There is also weirdness with window resizing where the image will render multiple times with different layouts.

React Native version:

Cloned master with version 0.60.0-microsoft.75, hash 12f7265

Steps To Reproduce

  1. Build and run RNTester-macOS
  2. Open example
  3. Scroll to 'Resize Mode' section

Describe what you expected to happen:

The "Cover" example should be completely covered by the image, but it is letter-boxed the same as the "Contain" example next to it:

Screen Shot 2020-04-22 at 11 38 04 AM

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions