Skip to content

Commit 4fb1dbd

Browse files
authored
icon prop - fix type to be both number and object. (#1086)
* icon prop - fix type to be both number and object. * update generatedTypes * removing js file
1 parent cc98d02 commit 4fb1dbd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/toast/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default class Toast extends PureBaseComponent {
5454
/**
5555
* a left icon
5656
*/
57-
icon: PropTypes.number,
57+
icon: PropTypes.oneOfType([PropTypes.object, PropTypes.number]),
5858
/**
5959
* a single action for the user
6060
*/

src/incubator/TabController/TabBarItem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default class TabBarItem extends PureComponent {
4242
/**
4343
* icon of the tab
4444
*/
45-
icon: PropTypes.number,
45+
icon: PropTypes.oneOfType([PropTypes.object, PropTypes.number]),
4646
/**
4747
* icon tint color
4848
*/

0 commit comments

Comments
 (0)