You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.7 KiB
73 lines
1.7 KiB
/*
|
|
* Copyright (c) Meta Platforms, Inc. and 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";
|
|
|
|
/*
|
|
* Preemptive View Allocation
|
|
*/
|
|
static BOOL RCTExperimentPreemptiveViewAllocationDisabled = NO;
|
|
|
|
BOOL RCTExperimentGetPreemptiveViewAllocationDisabled()
|
|
{
|
|
return RCTExperimentPreemptiveViewAllocationDisabled;
|
|
}
|
|
|
|
void RCTExperimentSetPreemptiveViewAllocationDisabled(BOOL value)
|
|
{
|
|
RCTExperimentPreemptiveViewAllocationDisabled = value;
|
|
}
|
|
|
|
/*
|
|
* W3C Pointer Events
|
|
*/
|
|
static BOOL RCTDispatchW3CPointerEvents = NO;
|
|
|
|
BOOL RCTGetDispatchW3CPointerEvents()
|
|
{
|
|
return RCTDispatchW3CPointerEvents;
|
|
}
|
|
|
|
void RCTSetDispatchW3CPointerEvents(BOOL value)
|
|
{
|
|
RCTDispatchW3CPointerEvents = value;
|
|
}
|
|
|
|
/*
|
|
* Validate RCTEventEmitter. For experimentation only.
|
|
*/
|
|
static BOOL RCTValidateCanSendEventInRCTEventEmitter = NO;
|
|
|
|
BOOL RCTGetValidateCanSendEventInRCTEventEmitter()
|
|
{
|
|
return RCTValidateCanSendEventInRCTEventEmitter;
|
|
}
|
|
|
|
void RCTSetValidateCanSendEventInRCTEventEmitter(BOOL value)
|
|
{
|
|
RCTValidateCanSendEventInRCTEventEmitter = value;
|
|
}
|
|
|
|
/*
|
|
* Memory Pressure Unloading Level for experimentation only.
|
|
* Default is 15, which is TRIM_MEMORY_RUNNING_CRITICAL.
|
|
*/
|
|
static int RCTMemoryPressureUnloadLevel = 15;
|
|
|
|
BOOL RCTGetMemoryPressureUnloadLevel()
|
|
{
|
|
return RCTMemoryPressureUnloadLevel;
|
|
}
|
|
|
|
void RCTSetMemoryPressureUnloadLevel(int value)
|
|
{
|
|
RCTMemoryPressureUnloadLevel = value;
|
|
}
|