mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Changelog: [internal] Fabric didn't have prop [removeClippedSubviews](https://reactnative.dev/docs/view#removeclippedsubviews) implemented. This diff adds it. It is Reviewed By: JoshuaGross Differential Revision: D29906458 fbshipit-source-id: 5851fa41d7facea9aab73ca131b4a0d23a2411ea
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;
|
|
}
|