fix(ios): box shadow border radius (#10142)

This commit is contained in:
Juan de Dios Martínez Vallejo
2022-12-27 19:41:34 -08:00
committed by GitHub
parent 8b7d5ab5fc
commit 6948f7c032
+6 -1
View File
@@ -736,7 +736,12 @@ function drawBoxShadow(nativeView: NativeScriptUIView, view: View, boxShadow: CS
);
// this should match the view's border radius
const cornerRadius = Length.toDevicePixels(<CoreTypes.LengthType>view.style.borderRadius, 0.0);
let cornerRadius: number;
if (typeof view.style.borderRadius !== 'number') {
cornerRadius = Length.toDevicePixels(<CoreTypes.LengthType>view.style.borderRadius, 0.0);
} else {
cornerRadius = view.style.borderRadius;
}
// apply spreadRadius by expanding shadow layer bounds
// prettier-ignore