wix / wix/react-native-ui-lib

[Image] errorSource not working on Android due to undefined nativeEvent.error + zIndex:-1 causes visibility issues

Open
#3,880 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug wontfix
Dominant language
TypeScript
Stars
7.2k
Forks
748
Avg merge
2d 18h
Merged PRs (30d)
1

Description

The Image component in react-native-ui-lib has two related issues on Android:

  1. errorSource does not load when image fails
    On Android, onError callback receives an event where event.nativeEvent.error is undefined. As a result, the component cannot detect a real error and fallback to errorSource.
    The Avatar (and similarly, Image) component in react-native-ui-lib has issues on Android:

  2. Image may be hidden due to zIndex: -1
    When using certain props (e.g., useBackgroundContainer or internal styling), the image gets zIndex: -1, causing it to be visually hidden behind other elements.

Both issues severely impact reliability and accessibility of image loading on Android.

react-native : 0.77.1
react-native-ui-lib : 7.43.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Image and Avatar components, reproducing failed Android image loads with errorSource and visibility issues involving useBackgroundContainer or internal styling. Done means errorSource renders when nativeEvent.error is undefined and the image remains visible under the affected props; no specific file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.