Skip to content

Image: SVG source breaks resizeMode repeat in Safari #1119

@dcalhoun

Description

@dcalhoun

The problem
Rendering <Image resizeMode="repeat" /> with an SVG source does not repeat in macOS Safari and iOS Safari.

How to reproduce
Simplified test case: https://codesandbox.io/s/m7n8zm1kwj

Steps to reproduce:

  1. Render <Image resizeMode="repeat" /> with an SVG source

Expected behavior
In all browsers, the image repeats to fill the width and height of the container.

Environment (include versions). Did this work in previous versions?

  • React Native for Web (version): 0.9.0
  • React (version): 16.5.2
  • Browser: macOS Safari 12, iOS Safari 12

Notes:

  • The server rendering of the component renders accurately, the mounted client breaks the repeating image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions