diff --git a/React/Base/RCTAssert.m b/React/Base/RCTAssert.m index e45589966c..634d7920d0 100644 --- a/React/Base/RCTAssert.m +++ b/React/Base/RCTAssert.m @@ -243,7 +243,11 @@ static BOOL newArchitectureViolationReporting = NO; void RCTEnableNewArchitectureViolationReporting(BOOL enabled) { +#if RCT_NEW_ARCHITECTURE + // Cannot disable the reporting in this mode. +#else newArchitectureViolationReporting = enabled; +#endif } static NSString *getNewArchitectureViolationMessage(id context, NSString *extra)