diff --git a/change/react-native-windows-7381bba4-15a0-458e-82c9-63951b1129c8.json b/change/react-native-windows-7381bba4-15a0-458e-82c9-63951b1129c8.json new file mode 100644 index 00000000000..24ff19c81ac --- /dev/null +++ b/change/react-native-windows-7381bba4-15a0-458e-82c9-63951b1129c8.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Fix skew transforms for string values", + "packageName": "react-native-windows", + "email": "erozell@outlook.com", + "dependentChangeType": "patch" +} diff --git a/vnext/Microsoft.ReactNative/Views/FrameworkElementViewManager.cpp b/vnext/Microsoft.ReactNative/Views/FrameworkElementViewManager.cpp index 412f4f90dc5..2442defbb8e 100644 --- a/vnext/Microsoft.ReactNative/Views/FrameworkElementViewManager.cpp +++ b/vnext/Microsoft.ReactNative/Views/FrameworkElementViewManager.cpp @@ -235,12 +235,12 @@ bool FrameworkElementViewManager::UpdateProperty( MultiplyInto( transformMatrix, winrt::Windows::Foundation::Numerics::float4x4( - winrt::Windows::Foundation::Numerics::make_float3x2_skew(innerValue.AsSingle(), 0.f))); + winrt::Windows::Foundation::Numerics::make_float3x2_skew(ToRadians(innerValue), 0.f))); } else if (transformType == "skewY") { MultiplyInto( transformMatrix, winrt::Windows::Foundation::Numerics::float4x4( - winrt::Windows::Foundation::Numerics::make_float3x2_skew(0.f, innerValue.AsSingle()))); + winrt::Windows::Foundation::Numerics::make_float3x2_skew(0.f, ToRadians(innerValue)))); } } }