Skip to content

Commit 06297c1

Browse files
committed
fix(styles): remove !important annotations
This raised yellowboxes & prevented styles from being rendered correctly.
1 parent c48a299 commit 06297c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/HTMLStyles.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ function cssToRNStyle (css, styleset, { parentTag, emSize, ptSize, ignoredStyles
130130
if (value.search('inherit') !== -1) {
131131
return undefined;
132132
}
133+
value = value.replace('!important', '');
133134
// See if we can use the percentage directly
134135
if (value.search('%') !== -1 && PERC_SUPPORTED_STYLES.indexOf(key) !== -1) {
135136
return [key, value];

0 commit comments

Comments
 (0)