Fabric: Removing workaround from RCTScrollViewComponentView.mm

Summary: We don't need it anymore.

Reviewed By: mdvacca

Differential Revision: D16454620

fbshipit-source-id: 3a92c62e93cf6968b8344003a19fe10b92a5d274
This commit is contained in:
Valentin Shergin
2019-07-25 10:00:29 -07:00
committed by Facebook Github Bot
parent 983ba63025
commit 2c136192a3
@@ -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<UIScrollViewDelegate> delegate = _scrollView.delegate;
_scrollView.delegate = nil;
_scrollView.delegate = delegate;
_scrollView.contentOffset = CGPointZero;
[super prepareForRecycle];
}