mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-30 21:49:31 +00:00
fix: fill/stroke setters and implement currentColor on Windows (#1928)
Starting in v13, the switch to Fabric changed the color prop values sent to the native side, so all colors on Windows were defaulting to black. Updated the property setters to handle that change and also added support for the SVG color prop / "currentColor".
This commit is contained in:
@@ -43,6 +43,7 @@ IMapView<hstring, ViewManagerPropertyType> SvgViewManager::NativeProps() {
|
||||
|
||||
nativeProps.Insert(L"height", ViewManagerPropertyType::Number);
|
||||
nativeProps.Insert(L"width", ViewManagerPropertyType::Number);
|
||||
nativeProps.Insert(L"color", ViewManagerPropertyType::Color);
|
||||
|
||||
// viewBox
|
||||
nativeProps.Insert(L"minX", ViewManagerPropertyType::Number);
|
||||
|
||||
Reference in New Issue
Block a user