mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Changelog: [internal] Experiment didn't move any metrics. Let's get rid of it. Reviewed By: mdvacca Differential Revision: D27588183 fbshipit-source-id: 55404a3d756971ee34d4a86acd1027ed077692c0
57 lines
1.3 KiB
Objective-C
57 lines
1.3 KiB
Objective-C
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#import "RCTConstants.h"
|
|
|
|
NSString *const RCTUserInterfaceStyleDidChangeNotification = @"RCTUserInterfaceStyleDidChangeNotification";
|
|
NSString *const RCTUserInterfaceStyleDidChangeNotificationTraitCollectionKey = @"traitCollection";
|
|
|
|
/*
|
|
* On-demand view mounting
|
|
*/
|
|
static BOOL RCTExperimentOnDemandViewMounting = NO;
|
|
|
|
BOOL RCTExperimentGetOnDemandViewMounting()
|
|
{
|
|
return RCTExperimentOnDemandViewMounting;
|
|
}
|
|
|
|
void RCTExperimentSetOnDemandViewMounting(BOOL value)
|
|
{
|
|
RCTExperimentOnDemandViewMounting = value;
|
|
}
|
|
|
|
/*
|
|
* Optimized hit-testing
|
|
*/
|
|
static BOOL RCTExperimentOptimizedHitTesting = NO;
|
|
|
|
BOOL RCTExperimentGetOptimizedHitTesting()
|
|
{
|
|
return RCTExperimentOptimizedHitTesting;
|
|
}
|
|
|
|
void RCTExperimentSetOptimizedHitTesting(BOOL value)
|
|
{
|
|
RCTExperimentOptimizedHitTesting = value;
|
|
}
|
|
|
|
/*
|
|
* Preemptive View Allocation
|
|
*/
|
|
static BOOL RCTExperimentPreemptiveViewAllocationDisabled = NO;
|
|
|
|
BOOL RCTExperimentGetPreemptiveViewAllocationDisabled()
|
|
{
|
|
return RCTExperimentPreemptiveViewAllocationDisabled;
|
|
}
|
|
|
|
void RCTExperimentSetPreemptiveViewAllocationDisabled(BOOL value)
|
|
{
|
|
RCTExperimentPreemptiveViewAllocationDisabled = value;
|
|
}
|