Fabric: Implementation of ShimmeringView aka <Shimmer>
Reviewed By: shergin Differential Revision: D8016962 fbshipit-source-id: 5ec598e606f8e4bbf9e5c1db082d6a0b29bed3ee
This commit is contained in:
Родитель
0ed8461f6d
Коммит
54489b91ab
|
@ -48,7 +48,7 @@ static const std::string componentNameByReactViewName(std::string viewName) {
|
|||
std::string rctPrefix("RCT");
|
||||
if (std::mismatch(rctPrefix.begin(), rctPrefix.end(), viewName.begin()).first == rctPrefix.end()) {
|
||||
// If `viewName` has "RCT" prefix, remove it.
|
||||
viewName.erase(0, 3);
|
||||
viewName.erase(0, rctPrefix.length());
|
||||
}
|
||||
|
||||
// Fabric uses slightly new names for Text components because of differences
|
||||
|
@ -70,8 +70,7 @@ static const std::string componentNameByReactViewName(std::string viewName) {
|
|||
|
||||
// Other temporary fallback until the native components are implemented.
|
||||
if (
|
||||
viewName == "ActivityIndicatorView" ||
|
||||
viewName == "ShimmeringView"
|
||||
viewName == "ActivityIndicatorView"
|
||||
) {
|
||||
return "View";
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче