Skip to content

Commit 3cf0d7a

Browse files
authored
[Fabric] Adds ActivityIndicator animating property (#12124)
* add Fabric ActivityIndicator animating property * Change files
1 parent 5ce904a commit 3cf0d7a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "add Fabric ActivityIndicator animating property",
4+
"packageName": "react-native-windows",
5+
"email": "tatianakapos@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}

vnext/Microsoft.ReactNative/Fabric/Composition/ActivityIndicatorComponentView.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ void ActivityIndicatorComponentView::updateProps(
5757
m_ActivityIndicatorVisual.updateColor(newViewProps->color.AsWindowsColor());
5858
}
5959

60+
if (newViewProps->animating != oldViewProps->animating) {
61+
m_ActivityIndicatorVisual.IsVisible(newViewProps->animating);
62+
}
63+
6064
updateBorderProps(*oldViewProps, *newViewProps);
6165
m_props = std::static_pointer_cast<facebook::react::ViewProps const>(props);
6266
}

0 commit comments

Comments
 (0)