react / react/react-native

[iOS] Shadow styles are unexpectedly applied to elements in the subtree

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

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

Bug Impact: Bug Never gets stale Platform: iOS
主要言語
C++
スター
127k
フォーク
25.3k
平均マージ
1日 23時間
マージ済み PR(30日)
4

説明

Description

Setting the iOS-only shadow* style props on a View can unexpectedly apply shadows to multiple elements in the view's subtree. This issue can be reproduced in Fabric too.

Version

0.68

Output of npx react-native info

...

Steps to reproduce
  1. Open: https://snack.expo.dev/MmY5VRLKN
  2. Select iOS preview
  3. Notice how the shadow applied to a wrapping view causes text elements to receive a shadow, and the background to be tinted the color of the shadow
Snack, code example, screenshot, or link to a repository

https://snack.expo.dev/MmY5VRLKN

image

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

リンクされた Snack の再現を iOS プレビューで開始し、Fabric での挙動と比較します。ラップしている View の iOS 専用 shadow props がそのサブツリーにどのような影響を与えるかを追跡します。完了条件は、子孫のテキストが影を受けなくなり、背景が影の色で着色されないことです。

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

評価

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

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

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