Commit ed85b64
committed
refactor: move Image tintColor and resizeMode from style to props
React Native deprecates the style-form of these properties on Image:
"Image: style.resizeMode is deprecated. Please use props.resizeMode."
"Image: style.tintColor is deprecated. Please use props.tintColor."
- Icon (image source variant): tintColor / resizeMode lifted out of the
style array onto the <Image> props.
- AppbarBackIcon (iOS back chevron): same migration; drop the now-empty
styles.icon entry.
Snapshot in Appbar.test.tsx updated to reflect the new prop placement.1 parent 3257eca commit ed85b64
3 files changed
Lines changed: 11 additions & 19 deletions
File tree
- src/components
- Appbar
- __tests__/Appbar/__snapshots__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 43 | | |
48 | 44 | | |
49 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
140 | | - | |
141 | | - | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
Lines changed: 6 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
| 628 | + | |
628 | 629 | | |
629 | 630 | | |
630 | 631 | | |
631 | 632 | | |
632 | 633 | | |
633 | 634 | | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
644 | 639 | | |
| 640 | + | |
645 | 641 | | |
646 | 642 | | |
647 | 643 | | |
| |||
0 commit comments