mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c25c4abe4a
commit
c2949bd511
@@ -234,7 +234,7 @@ RCTFatalExceptionHandler RCTGetFatalExceptionHandler(void)
|
||||
|
||||
// MARK: - New Architecture Validation - Enable Reporting
|
||||
|
||||
#if RCT_NEW_ARCHITECTURE
|
||||
#if RCT_ONLY_NEW_ARCHITECTURE
|
||||
static RCTNotAllowedValidation validationReportingEnabled = RCTNotAllowedInBridgeless;
|
||||
#else
|
||||
static RCTNotAllowedValidation validationReportingEnabled = RCTNotAllowedValidationDisabled;
|
||||
@@ -242,7 +242,7 @@ static RCTNotAllowedValidation validationReportingEnabled = RCTNotAllowedValidat
|
||||
|
||||
__attribute__((used)) RCT_EXTERN void RCTNewArchitectureValidationSetEnabled(RCTNotAllowedValidation type)
|
||||
{
|
||||
#if RCT_NEW_ARCHITECTURE
|
||||
#if RCT_ONLY_NEW_ARCHITECTURE
|
||||
// Cannot disable the reporting in this mode.
|
||||
#else
|
||||
validationReportingEnabled = type;
|
||||
|
||||
@@ -157,7 +157,7 @@
|
||||
* Note: this is work in progress.
|
||||
*/
|
||||
#ifdef REACT_NATIVE_FORCE_NEW_ARCHITECTURE
|
||||
#define RCT_NEW_ARCHITECTURE 1
|
||||
#define RCT_ONLY_NEW_ARCHITECTURE 1
|
||||
#else
|
||||
#define RCT_NEW_ARCHITECTURE 0
|
||||
#define RCT_ONLY_NEW_ARCHITECTURE 0
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user