(Easy) Add RCTNotAllowedInAppWideFabric validation to the only static method in RCTUIManager, JSResponder

Summary:
Changelog: [Internal][iOS] Add validation log to the only static method in RCTUIManager, JSResponder

When all surfaces of an app has been fully migrated to Fabric, we don't expect `[RCTUIManager JSResponder]` to be called, so I'm expecting this API to be broken on Fabric and Bridgeless.

Reviewed By: RSNara

Differential Revision: D35723794

fbshipit-source-id: ec786946a33fca98c89e8cad0e0467bf45dc1735
This commit is contained in:
Paige Sun
2022-04-18 18:57:40 -07:00
committed by Facebook GitHub Bot
parent 32c704c30f
commit 23b6240b25
+2
View File
@@ -1656,6 +1656,8 @@ static UIView *_jsResponder;
+ (UIView *)JSResponder
{
RCTErrorNewArchitectureValidation(
RCTNotAllowedInAppWideFabric, @"RCTUIManager", @"Please migrate this legacy surface to Fabric.");
return _jsResponder;
}