Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "prerelease",
"comment": "Add todo stub for FacadeType::Progress in AnimatedNode",
"packageName": "react-native-windows",
"email": "adamgor@microsoft.com",
"commit": "ce0f4a3a91e31207d2aa1691cfb55d159457e5d0",
"date": "2019-10-28T19:46:31.732Z",
"file": "F:\\GS\\repo\\RNW\\change\\react-native-windows-2019-10-28-12-46-31-user-adamgor-progress.json"
}
7 changes: 5 additions & 2 deletions vnext/ReactUWP/Modules/Animated/FacadeType.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ enum FacadeType {
TranslateX,
TranslateY,
Perspective,
Progress
};

static FacadeType StringToFacadeType(const std::string &string) {
Expand All @@ -37,7 +38,9 @@ static FacadeType StringToFacadeType(const std::string &string) {
return FacadeType::TranslateX;
if (string == "translateY")
return FacadeType::TranslateY;
if (string == "perspective")
return FacadeType::Perspective;

assert(string == "perspective");
return FacadeType::Perspective;
assert(string == "progress");
return FacadeType::Progress;
}
3 changes: 3 additions & 0 deletions vnext/ReactUWP/Modules/Animated/PropsAnimatedNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ void PropsAnimatedNode::MakeAnimation(int64_t valueNodeTag, FacadeType facadeTyp
case FacadeType::Perspective:
// TODO: implement perspective animations, tracked by issue #2680
return;
case FacadeType::Progress:
// TODO: implement progress animations, tracked by issue #3283
return;
default:
assert(false);
}
Expand Down