Fabric: Implementation of ShimmeringView aka <Shimmer>

Reviewed By: shergin

Differential Revision: D8016962

fbshipit-source-id: 5ec598e606f8e4bbf9e5c1db082d6a0b29bed3ee
This commit is contained in:
Kevin Gozali 2018-05-22 01:19:35 -07:00 коммит произвёл Facebook Github Bot
Родитель 0ed8461f6d
Коммит 54489b91ab
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -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";
}