mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-25 23:48:54 +00:00
committed by
Nicolas Gallagher
parent
7ab04987f0
commit
4a70300b08
@@ -11,7 +11,6 @@
|
||||
*/
|
||||
|
||||
import dangerousStyleValue from '../dangerousStyleValue';
|
||||
import hyphenateStyleName from 'hyphenate-style-name';
|
||||
|
||||
/**
|
||||
* Sets the value for multiple styles on a node. If a value is specified as
|
||||
@@ -32,8 +31,7 @@ function setValueForStyles(node, styles) {
|
||||
styleName = 'cssFloat';
|
||||
}
|
||||
if (isCustomProperty) {
|
||||
const name = isCustomProperty ? styleName : hyphenateStyleName(styleName);
|
||||
style.setProperty(name, styleValue);
|
||||
style.setProperty(styleName, styleValue);
|
||||
} else {
|
||||
style[styleName] = styleValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user