Skip to content

Commit

Permalink
Merge pull request mientjan#89 from imeos/react-native-0.57.4
Browse files Browse the repository at this point in the history
Fix broken heading styles
  • Loading branch information
ardeaf committed Nov 4, 2019
2 parents 260fad0 + f93a899 commit d8f1791
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function applyStyle(children, styles, type) {
}

return children.map(child => {
if (child.type.displayName === type) {
if (child.type.displayName === type || child.type.render.name === type) {
return <Text key={child.key} {...child.props} style={[].concat(child.props.style, styles)} />;
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib/util/applyStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function applyStyle(children, styles, type) {
}

return children.map(child => {
if (child.type.displayName === type) {
if (child.type.displayName === type || child.type.render.name === type) {
return <Text key={child.key} {...child.props} style={[].concat(child.props.style, styles)} />;
}

Expand Down

0 comments on commit d8f1791

Please sign in to comment.