mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: changelog: [internal] Ship initial max size on iOS Reviewed By: fkgozali Differential Revision: D30990650 fbshipit-source-id: cf8f202ee862145a6fa9f173c2073096f86015e3
42 lines
1.0 KiB
Objective-C
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;
|
|
}
|