From 2c136192a352ff04c8f2191397a769df844933b1 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Thu, 25 Jul 2019 09:56:20 -0700 Subject: [PATCH] Fabric: Removing workaround from RCTScrollViewComponentView.mm Summary: We don't need it anymore. Reviewed By: mdvacca Differential Revision: D16454620 fbshipit-source-id: 3a92c62e93cf6968b8344003a19fe10b92a5d274 --- .../ScrollView/RCTScrollViewComponentView.mm | 7 ------- 1 file changed, 7 deletions(-) diff --git a/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm b/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm index 990bba21294..d0297c694d3 100644 --- a/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +++ b/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm @@ -171,13 +171,6 @@ using namespace facebook::react; - (void)prepareForRecycle { - // This is a temporary workaround. - // Some external libraries rely on that fact that UIScrollView instance inside React Native nulls its `delegate` when - // being unmounted. Here we are trying to mimic this behavior. - // See T47356757 for more details. - id delegate = _scrollView.delegate; - _scrollView.delegate = nil; - _scrollView.delegate = delegate; _scrollView.contentOffset = CGPointZero; [super prepareForRecycle]; }