Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions DefaultTabBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const DefaultTabBar = React.createClass({
backgroundColor: React.PropTypes.string,
activeTextColor: React.PropTypes.string,
inactiveTextColor: React.PropTypes.string,
textStyle: View.propTypes.style,
textStyle: Text.propTypes.style,
tabStyle: View.propTypes.style,
},

getDefaultProps() {
Expand All @@ -43,7 +44,7 @@ const DefaultTabBar = React.createClass({
accessibilityTraits='button'
onPress={() => this.props.goToPage(page)}
>
<View style={styles.tab}>
<View style={[styles.tab, this.props.tabStyle]}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add to propTypes

<Text style={[{color: textColor, fontWeight, }, textStyle, ]}>
{name}
</Text>
Expand Down
2 changes: 1 addition & 1 deletion ScrollableTabBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const ScrollableTabBar = React.createClass({
style: View.propTypes.style,
tabStyle: View.propTypes.style,
tabsContainerStyle: View.propTypes.style,
textStyle: View.propTypes.style,
textStyle: Text.propTypes.style,
},

getDefaultProps() {
Expand Down