Repository navigation
Commit 7ca06b9
committed
[repro] Image Props 2.0 payload: same-URI source changes are not sent
ImageProps::getDiffProps compares sources with ImageSource::operator==, which
compares only type and URI. A source that keeps its URI but changes its headers,
cache policy, size or scale is therefore not sent, and neither are the derived
headers: ReactImageView keeps the old cache control and multi-source sizes, and
ReactImageManager keeps the old request headers. The test fails on main.1 parent 6a45453 commit 7ca06b9
1 file changed
Lines changed: 22 additions & 0 deletions
File tree
- packages/react-native/ReactCommon/react/renderer/components/image/tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
69 | 91 | | |
70 | 92 | | |
71 | 93 | | |
0 commit comments