We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 24ad5c0 + c68f080 commit ed08d9aCopy full SHA for ed08d9a
src/ParsedText.js
@@ -62,11 +62,14 @@ class ParsedText extends React.Component {
62
const textExtraction = new TextExtraction(this.props.children, this.getPatterns());
63
64
return textExtraction.parse().map((props, index) => {
65
+ const { style: parentStyle } = this.props
66
+ const { style, ...remainder } = props
67
return (
68
<Text
69
key={`parsedText-${index}`}
70
+ style={[parentStyle, style]}
71
{...this.props.childrenProps}
- {...props}
72
+ {...remainder}
73
/>
74
);
75
});
0 commit comments