diff --git a/tns-core-modules/ui/styling/style.ts b/tns-core-modules/ui/styling/style.ts index cc9b135d4..346339491 100644 --- a/tns-core-modules/ui/styling/style.ts +++ b/tns-core-modules/ui/styling/style.ts @@ -1400,9 +1400,9 @@ export class StylePropertyChangedHandler { } if (application.android) { - newValue = newValue.android ? newValue.android : newValue; + newValue = types.isDefined(newValue.android) ? newValue.android : newValue; } else if (application.ios) { - newValue = newValue.ios ? newValue.ios : newValue; + newValue = types.isDefined(newValue.ios) ? newValue.ios : newValue; } this._applyProperty(view, newValue, _defaultNativeValuesCache[className + property.id]);