Files
react-native/React/Base/RCTConstants.m
T
Samuel Susla 976a305412 Remove clean up resources when the app is backgrounded experiment
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
2021-04-07 17:01:04 -07:00

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;
}