[Image] errorSource not working on Android due to undefined nativeEvent.error + zIndex:-1 causes visibility issues
Nobody has claimed this yet.
- 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:
-
errorSourcedoes not load when image fails
On Android,onErrorcallback receives an event whereevent.nativeEvent.errorisundefined. As a result, the component cannot detect a real error and fallback toerrorSource.
The Avatar (and similarly, Image) component in react-native-ui-lib has issues on Android: -
Image may be hidden due to
zIndex: -1
When using certain props (e.g.,useBackgroundContaineror internal styling), the image getszIndex: -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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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