mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 21:53:30 +00:00
Fabric: Implementation of ShimmeringView aka <Shimmer>
Reviewed By: shergin Differential Revision: D8016962 fbshipit-source-id: 5ec598e606f8e4bbf9e5c1db082d6a0b29bed3ee
This commit is contained in:
parent
0ed8461f6d
commit
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";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user