mirror of
https://github.com/status-im/react-native.git
synced 2025-02-13 01:46:59 +00:00
Summary: We are removing `reactBridgeDidFinishTransaction`. Why? * It is a performance drain. Supporting this requires dispatching main-thread block on every single transaction complete; * It has "too broad" non-conceptual semantic which encouraged using this as a "band-aid solution" for poorly designed components; * It is conceptually incompatible with new approaches that we are trying to implement to optimize the render layer; * It was deprecated for very long time. This diff removes `reactBridgeDidFinishTransaction` from RCTScrollView component. As I mentioned, because of the semantic of `reactBridgeDidFinishTransaction` is extremely broad, it's hard to capture what exact case it should handle. Based on comments and existing logic, it seems it tight to `contentSize` property and the size of RCTScrollContentView. Reviewed By: rsnara Differential Revision: D6538419 fbshipit-source-id: ccc6f5fea327471f10f1738d3da5214c0d362953
30 lines
646 B
Objective-C
30 lines
646 B
Objective-C
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import "RCTScrollContentViewManager.h"
|
|
|
|
#import "RCTScrollContentShadowView.h"
|
|
#import "RCTScrollContentView.h"
|
|
|
|
@implementation RCTScrollContentViewManager
|
|
|
|
RCT_EXPORT_MODULE()
|
|
|
|
- (RCTScrollContentView *)view
|
|
{
|
|
return [RCTScrollContentView new];
|
|
}
|
|
|
|
- (RCTShadowView *)shadowView
|
|
{
|
|
return [RCTScrollContentShadowView new];
|
|
}
|
|
|
|
@end
|