mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user