This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/react-native/React/Views/RCTScrollView.m b/node_modules/react-native/React/Views/RCTScrollView.m | |
--- a/node_modules/react-native/React/Views/RCTScrollView.m | |
+++ b/node_modules/react-native/React/Views/RCTScrollView.m | |
@@ -136,7 +136,7 @@ | |
* default UIKit behaviors such as textFields automatically scrolling | |
* scroll views that contain them and support sticky headers. | |
*/ | |
-@interface RCTCustomScrollView : UIScrollView<UIGestureRecognizerDelegate> | |
+@interface RCTCustomScrollView : UIScrollView<UIGestureRecognizerDelegate, RCTClippingView> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)reactSetFrame:(CGRect)frame | |
{ | |
// If frame is zero, or below the threshold where the border radii can | |
// be rendered as a stretchable image, we'll need to re-render. | |
// TODO: detect up-front if re-rendering is necessary | |
CGSize oldSize = self.bounds.size; | |
[super reactSetFrame:frame]; | |
if (!CGSizeEqualToSize(self.bounds.size, oldSize)) { | |
if (self.reactSubviews) { | |
BOOL aboveHasClipToBounds = self.clipsToBounds; |