Skip to content

Commit

Permalink
fix(Utils): merge styles issues
Browse files Browse the repository at this point in the history
  • Loading branch information
marcocesarato committed Apr 3, 2021
1 parent 3b7b6c9 commit fe9b773
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,10 @@ export const mergeViewStyle = (style, defaultStyle) => {
style = defaultStyle;
} else if (Array.isArray(style) && Array.isArray(defaultStyle)) {
defaultStyle.concat(style);
style = defaultStyle;
} else if (Array.isArray(defaultStyle)) {
defaultStyle.push(style);
style = defaultStyle;
} else if (Array.isArray(style)) {
style.unshift(defaultStyle);
} else {
Expand Down

0 comments on commit fe9b773

Please sign in to comment.