This commit is contained in:
Andrew Clark
2022-01-21 09:59:11 -05:00
parent 26baf6a174
commit ca143e18d8
@@ -213,10 +213,7 @@ function renameStyle(
instance.setNativeProps({style: newStyle});
} else if (isArray(style)) {
const lastIndex = style.length - 1;
if (
typeof style[lastIndex] === 'object' &&
!isArray(style[lastIndex])
) {
if (typeof style[lastIndex] === 'object' && !isArray(style[lastIndex])) {
customStyle = shallowClone(style[lastIndex]);
delete customStyle[oldName];
if (newName) {
@@ -299,10 +296,7 @@ function setStyle(
instance.setNativeProps({style: newStyle});
} else if (isArray(style)) {
const lastLength = style.length - 1;
if (
typeof style[lastLength] === 'object' &&
!isArray(style[lastLength])
) {
if (typeof style[lastLength] === 'object' && !isArray(style[lastLength])) {
agent.overrideValueAtPath({
type: 'props',
id,