Skip to content

Image: tintColor style does not work in Safari browser #1914

Open
@LcsGrz

Description

@LcsGrz

The problem
I am using the tintColor property to change the white color to pink when the icon is selected, on mobile and in all browsers except safari, the behavior works fine, but in safari, sometimes it changes, sometimes not....
It is usually more the ones that does not work, for example, a first time it changes to pink, but then it can never return to white, or vice versa.

How to reproduce

Simplified test case: https://codesandbox.io/s/wonderful-neumann-04vuz

Steps to reproduce:

  1. Enter the sandbox code on the Safari browser
  2. Click any image to change the index, and check the text to see the click make a difference

Expected behavior

the color of the images should change from black to red or vice versa, depending on the case.

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

  • React Native for Web (version): 0.15
  • React (version): 16.11
  • React Native(version): 0.63.3
  • Browser: Safari

Additional context

The problem I'm only finding in safari, I've been checking the library code and I didn't find anything strange, I tried to make improvements and nothing worked...
Checking from the web inspector I realized that what doesn't change is the ID.

imagen

Metadata

Metadata

Assignees

No one assigned

    Labels

    has: prSubject of a pull requestproject:react-native-webIssue associated with react-native-web

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions