Clean up optimized_hit_testing_ios
Summary: Changelog: [internal] Clean up the experiment Reviewed By: JoshuaGross Differential Revision: D27996499 fbshipit-source-id: 3c9598846b3800eef86d039580e6a12e7273e798
This commit is contained in:
Родитель
2482684080
Коммит
ad2f1caf9a
|
@ -17,12 +17,6 @@ RCT_EXTERN NSString *const RCTUserInterfaceStyleDidChangeNotificationTraitCollec
|
|||
RCT_EXTERN BOOL RCTExperimentGetOnDemandViewMounting(void);
|
||||
RCT_EXTERN void RCTExperimentSetOnDemandViewMounting(BOOL value);
|
||||
|
||||
/*
|
||||
* It's an experimental feature that improves performance of hit-testing.
|
||||
*/
|
||||
RCT_EXTERN BOOL RCTExperimentGetOptimizedHitTesting(void);
|
||||
RCT_EXTERN void RCTExperimentSetOptimizedHitTesting(BOOL value);
|
||||
|
||||
/*
|
||||
* Preemptive View Allocation
|
||||
*/
|
||||
|
|
|
@ -25,21 +25,6 @@ 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
|
||||
*/
|
||||
|
|
|
@ -350,9 +350,7 @@ using namespace facebook::react;
|
|||
|
||||
BOOL clipsToBounds = self.clipsToBounds;
|
||||
|
||||
if (RCTExperimentGetOptimizedHitTesting()) {
|
||||
clipsToBounds = clipsToBounds || _layoutMetrics.overflowInset == EdgeInsets{};
|
||||
}
|
||||
clipsToBounds = clipsToBounds || _layoutMetrics.overflowInset == EdgeInsets{};
|
||||
|
||||
if (clipsToBounds && !isPointInside) {
|
||||
return nil;
|
||||
|
|
|
@ -257,10 +257,6 @@ static BackgroundExecutor RCTGetBackgroundExecutor()
|
|||
RCTExperimentSetOnDemandViewMounting(YES);
|
||||
}
|
||||
|
||||
if (reactNativeConfig && reactNativeConfig->getBool("react_fabric:optimized_hit_testing_ios")) {
|
||||
RCTExperimentSetOptimizedHitTesting(YES);
|
||||
}
|
||||
|
||||
if (reactNativeConfig && reactNativeConfig->getBool("react_fabric:preemptive_view_allocation_disabled_ios")) {
|
||||
RCTExperimentSetPreemptiveViewAllocationDisabled(YES);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче