Skip to content

Commit

Permalink
add customTextStyle to MessageText
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadav committed Oct 22, 2017
1 parent 48fb6be commit ed7805a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MessageText.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default class MessageText extends React.Component {
return (
<View style={[styles[this.props.position].container, this.props.containerStyle[this.props.position]]}>
<ParsedText
style={[styles[this.props.position].text, this.props.textStyle[this.props.position]]}
style={[styles[this.props.position].text, this.props.textStyle[this.props.position], this.props.customTextStyle]}
parse={[
...this.props.parsePatterns(linkStyle),
{type: 'url', style: linkStyle, onPress: this.onUrlPress},
Expand Down Expand Up @@ -153,4 +153,5 @@ MessageText.propTypes = {
}),
parsePatterns: PropTypes.func,
textProps: PropTypes.object,
customTextStyle: Text.propTypes.style,
};

0 comments on commit ed7805a

Please sign in to comment.