You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/design-system-react-native/MIGRATION.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,27 @@ The intermediate `Box` wrapper around the `BoxRow` in the left section has been
75
75
76
76
No changes to visual appearance or API.
77
77
78
+
#### Icon: prop types now align with SVG usage
79
+
80
+
**What Changed:**
81
+
82
+
-`IconProps` now extends `Omit<SvgProps, 'color' | 'name'>` instead of `ViewProps`.
83
+
- The component now forwards `hitSlop` as `hitSlop ?? undefined` to satisfy strict SVG prop typing.
84
+
85
+
**Migration:**
86
+
87
+
If TypeScript now flags props you were previously passing to `Icon`, those props were `View`-specific and are no longer part of the `Icon` public type. Move those props to a wrapper `View` and keep SVG-compatible props on `Icon`.
0 commit comments