Skip to content

Commit c2949bd

Browse files
p-sunfacebook-github-bot
authored andcommitted
Enable absolute bridgeless with REACT_NATIVE_FORCE_NEW_ARCHITECTURE flag on Wilde
Summary: Changelog: [Internal] Reviewed By: fkgozali Differential Revision: D37269572 fbshipit-source-id: ba9ecea2d81075a7ce79e26040924d04b170bf46
1 parent c25c4ab commit c2949bd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

React/Base/RCTAssert.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -234,15 +234,15 @@ RCTFatalExceptionHandler RCTGetFatalExceptionHandler(void)
234234

235235
// MARK: - New Architecture Validation - Enable Reporting
236236

237-
#if RCT_NEW_ARCHITECTURE
237+
#if RCT_ONLY_NEW_ARCHITECTURE
238238
static RCTNotAllowedValidation validationReportingEnabled = RCTNotAllowedInBridgeless;
239239
#else
240240
static RCTNotAllowedValidation validationReportingEnabled = RCTNotAllowedValidationDisabled;
241241
#endif
242242

243243
__attribute__((used)) RCT_EXTERN void RCTNewArchitectureValidationSetEnabled(RCTNotAllowedValidation type)
244244
{
245-
#if RCT_NEW_ARCHITECTURE
245+
#if RCT_ONLY_NEW_ARCHITECTURE
246246
// Cannot disable the reporting in this mode.
247247
#else
248248
validationReportingEnabled = type;

React/Base/RCTDefines.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
* Note: this is work in progress.
158158
*/
159159
#ifdef REACT_NATIVE_FORCE_NEW_ARCHITECTURE
160-
#define RCT_NEW_ARCHITECTURE 1
160+
#define RCT_ONLY_NEW_ARCHITECTURE 1
161161
#else
162-
#define RCT_NEW_ARCHITECTURE 0
162+
#define RCT_ONLY_NEW_ARCHITECTURE 0
163163
#endif

0 commit comments

Comments
 (0)