Skip to content

Commit dd9c1e1

Browse files
christopherdrofacebook-github-bot-0
authored andcommitted
Add string as possible propType for 'systemIcon'
Summary: Fixes facebook#2361 Closes facebook#4523 Reviewed By: svcscm Differential Revision: D2718568 Pulled By: androidtrunkagent fb-gh-sync-id: a15c94acaac899dfdaeb397c8c764053d1430854
1 parent a2f1be0 commit dd9c1e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ var TabBarItemIOS = React.createClass({
5252
/**
5353
* A custom icon for the tab. It is ignored when a system icon is defined.
5454
*/
55-
icon: Image.propTypes.source,
55+
icon: React.PropTypes.oneOfType([
56+
React.PropTypes.string,
57+
Image.propTypes.source,
58+
]),
5659
/**
5760
* A custom icon when the tab is selected. It is ignored when a system
5861
* icon is defined. If left empty, the icon will be tinted in blue.

0 commit comments

Comments
 (0)