Files
react-native/React/Base/RCTConstants.m
Samuel SuslaandFacebook GitHub Bot 3d83ca0331 Ship initial max size on iOS
Summary:
changelog: [internal]

Ship initial max size on iOS

Reviewed By: fkgozali

Differential Revision: D30990650

fbshipit-source-id: cf8f202ee862145a6fa9f173c2073096f86015e3
2021-09-21 08:23:08 -07:00

42 lines
1.0 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";
/*
* Preemptive View Allocation
*/
static BOOL RCTExperimentPreemptiveViewAllocationDisabled = NO;
BOOL RCTExperimentGetPreemptiveViewAllocationDisabled()
{
return RCTExperimentPreemptiveViewAllocationDisabled;
}
void RCTExperimentSetPreemptiveViewAllocationDisabled(BOOL value)
{
RCTExperimentPreemptiveViewAllocationDisabled = value;
}
/*
* Remove clipped subviews
*/
static BOOL RCTRemoveClippedSubviewsEnabled = NO;
BOOL RCTGetRemoveClippedSubviewsEnabled(void)
{
return RCTRemoveClippedSubviewsEnabled;
}
void RCTSetRemoveClippedSubviewsEnabled(BOOL value)
{
RCTRemoveClippedSubviewsEnabled = value;
}