diff --git a/packages/core/ui/styling/background.ios.ts b/packages/core/ui/styling/background.ios.ts index e3eb08627..6e8f8f320 100644 --- a/packages/core/ui/styling/background.ios.ts +++ b/packages/core/ui/styling/background.ios.ts @@ -736,7 +736,12 @@ function drawBoxShadow(nativeView: NativeScriptUIView, view: View, boxShadow: CS ); // this should match the view's border radius - const cornerRadius = Length.toDevicePixels(view.style.borderRadius, 0.0); + let cornerRadius: number; + if (typeof view.style.borderRadius !== 'number') { + cornerRadius = Length.toDevicePixels(view.style.borderRadius, 0.0); + } else { + cornerRadius = view.style.borderRadius; + } // apply spreadRadius by expanding shadow layer bounds // prettier-ignore