Skip to content

Commit

Permalink
Fixes textStyle for Tab(heading) (#2801)
Browse files Browse the repository at this point in the history
  • Loading branch information
Srishti-Sharma authored and sankhadeeproy007 committed Jul 23, 2019
1 parent 994525d commit 78e03c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/basic/Tabs/DefaultTabBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const DefaultTabBar = createReactClass({
? activeTextColor
: inactiveTextColor;
const fontWeight = isTabActive ? 'bold' : 'normal';
const isDisabled = disabled == undefined ? false : true;
const isDisabled = disabled != undefined;

if (typeof name === 'string') {
return (
Expand All @@ -84,8 +84,8 @@ const DefaultTabBar = createReactClass({
<Text
style={[
{ fontSize: tabFontSize },
isTabActive ? activeTextStyle : textStyle,
{ color: textColor }
{ color: textColor },
isTabActive ? activeTextStyle : textStyle
]}
>
{name}
Expand Down

0 comments on commit 78e03c3

Please sign in to comment.