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

オープン
#3,880 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
react-native
領域
mobile

調査の方向性

Image コンポーネントと Avatar コンポーネントから始め、errorSource を使った Android の画像読み込み失敗と、useBackgroundContainer または内部スタイリングに関係する表示の問題を再現します。nativeEvent.error が undefined の場合にも errorSource がレンダリングされ、影響を受ける props の下で画像が表示されたままになれば完了です。この issue では特定のファイルやテストは指定されていません。

索引モデルが issue の本文から書いたものです。

説明

bug wontfix

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

主要言語
TypeScript
スター
7.2k
フォーク
749
平均マージ
2日 4時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wix/react-native-ui-lib のほかの issue

wix/react-native-ui-lib の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。