Closed qimingfang closed 8 years ago
I get a warning when trying to initiate a <TabNavigator.Item> with badgeText={"1"} (as in example):
<TabNavigator.Item>
badgeText={"1"}
Warning: Failed propType: Invalid prop badgeText of value 1 supplied to TabNavigatorItem, expected one of [null,null].
badgeText
1
TabNavigatorItem
Changing its PropType to oneOfType resolved this warning.
oneOfType
I get a warning when trying to initiate a
<TabNavigator.Item>
withbadgeText={"1"}
(as in example):Changing its PropType to
oneOfType
resolved this warning.