mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
743d0706e2
Summary: Changelog: [Internal][iOS] Add validation reporting APIs for unexpected uses of Paper when Fabric is enabled ## RCTNotAllowedInBridgeless Previously, we only had violation reporting APIs for when **Bridge APIs** are used in **Bridgeless mode**, which was only enabled in Bridgeless mode. ## RCTNotAllowedInFabric This diff adds violation reporting APIs to use when **pre-Fabric Bridge APIs** are used in **Bridge or Bridgeless mode**. This allows us to add RCTAssert/RCTError/RCTLog to more APIs in Bridge mode. The main purpose is to distinguish between Bridge APIs that still work in Fabric, versus Bridge APIs that are no longer used in Fabric, so that the latter can be removed. Reviewed By: philIip Differential Revision: D35015758 fbshipit-source-id: 35366bc5143a59ee9a16d75da4de546ebfe250e6