Add FBRotatablePhotoPlayerView to LegacyInterop whitelist

Summary: Changelog: [internal]

Reviewed By: sammy-SC

Differential Revision: D21661427

fbshipit-source-id: de692015f3c6f029d2ea3f927e30d6758c0b1102
This commit is contained in:
Jimmy Zhang
2020-05-20 09:28:08 -07:00
committed by Facebook GitHub Bot
parent 6b64810f33
commit 6acccae980
@@ -24,6 +24,10 @@ static std::string moduleNameFromComponentName(const std::string &componentName)
if (componentName == "StickerInputView") {
return "FBStickerInputViewManager";
}
if (componentName == "FBRotatablePhotoPlayer") {
return "FBRotatablePhotoPlayerViewManager";
}
std::string fbPrefix("FB");
if (std::mismatch(fbPrefix.begin(), fbPrefix.end(), componentName.begin()).first == fbPrefix.end()) {
// If `moduleName` has "FB" prefix.