Skip to content
This repository was archived by the owner on Nov 12, 2019. It is now read-only.

Commit 5752f01

Browse files
authored
Merge pull request #14 from IDTLabs/master
NavButtonText now supports all text props
2 parents f4c66f7 + 17283dd commit 5752f01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/NavButtonText.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ import styles from '../styles';
55

66
function NavButtonText({ style, children }: Object): React.Element {
77
return (
8-
<Text style={[styles.navBarButtonText, style]}>
8+
<Text style={[styles.navBarButtonText, style]} {...this.props}>
99
{children}
1010
</Text>
1111
)
1212
}
1313

1414
NavButtonText.propTypes = {
15+
...Text.PropTypes,
1516
style: Text.propTypes.style,
1617
children: PropTypes.node,
1718
}

0 commit comments

Comments
 (0)