rn-css 1.10.2 → 1.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/convertStyle.js +2 -2
- package/package.json +1 -1
- package/src/convertStyle.tsx +2 -2
package/dist/convertStyle.js
CHANGED
|
@@ -41,8 +41,8 @@ const convertStyle = (rnStyle, units) => {
|
|
|
41
41
|
height: (0, convertUnits_1.convertValue)(key, rnStyle.textShadowOffset.height || '0', units)
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
// Font family should not be transformed (same as cursor for web in case of base64 value)
|
|
45
|
-
else if (['cursor', 'fontFamily'].includes(key)) {
|
|
44
|
+
// Font family should not be transformed (same as cursor for web in case of base64 value, and boxShadow/textShadow for web)
|
|
45
|
+
else if (['cursor', 'fontFamily', 'boxShadow', 'textShadow'].includes(key)) {
|
|
46
46
|
convertedStyle[key] = value;
|
|
47
47
|
}
|
|
48
48
|
else {
|
package/package.json
CHANGED
package/src/convertStyle.tsx
CHANGED
|
@@ -42,8 +42,8 @@ const convertStyle = <T extends AnyStyle | Animated.WithAnimatedValue<AnyStyle>
|
|
|
42
42
|
height: convertValue(key, rnStyle.textShadowOffset!.height || '0', units) as number
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
// Font family should not be transformed (same as cursor for web in case of base64 value)
|
|
46
|
-
else if (['cursor', 'fontFamily'].includes(key)) {
|
|
45
|
+
// Font family should not be transformed (same as cursor for web in case of base64 value, and boxShadow/textShadow for web)
|
|
46
|
+
else if (['cursor', 'fontFamily', 'boxShadow', 'textShadow'].includes(key)) {
|
|
47
47
|
convertedStyle[key as 'fontFamily'] = value
|
|
48
48
|
}
|
|
49
49
|
else {
|