Skip to content

Commit f346dd6

Browse files
fkgozalifacebook-github-bot
authored andcommitted
iOS new architecture: disallow disabling enforcement when RCT_NEW_ARCHITECTURE is defined
Summary: Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D28080430 fbshipit-source-id: 3e89be8419776c4a6da9dd9e8c6c5501c8f6c304
1 parent c54aecc commit f346dd6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

React/Base/RCTAssert.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,11 @@ RCTFatalExceptionHandler RCTGetFatalExceptionHandler(void)
243243

244244
void RCTEnableNewArchitectureViolationReporting(BOOL enabled)
245245
{
246+
#if RCT_NEW_ARCHITECTURE
247+
// Cannot disable the reporting in this mode.
248+
#else
246249
newArchitectureViolationReporting = enabled;
250+
#endif
247251
}
248252

249253
static NSString *getNewArchitectureViolationMessage(id context, NSString *extra)

0 commit comments

Comments
 (0)