Skip to content

Commit

Permalink
fix: restrict display attribute to flex and none
Browse files Browse the repository at this point in the history
fix #257
  • Loading branch information
jpamarohorta authored and jsamr committed Jul 17, 2020
1 parent 2e862ec commit f705ab8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/HTMLStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ function cssToRNStyle (css, styleset, { emSize, ptSize, ignoredStyles, allowedSt
if (key === 'fontSize') {
return mapAbsoluteFontSize(key, value);
}
if (key === 'display' && ['flex', 'none'].indexOf(value) === -1) {
return [key, 'flex'];
}
}
return [key, value];
})
Expand Down

0 comments on commit f705ab8

Please sign in to comment.