Skip to content

Commit 08486ba

Browse files
authored
fix broken overdrag on notch (#787)
Co-authored-by: Kuba Juszczyk <[email protected]>
1 parent 3ea6dae commit 08486ba

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ios/Fabric/RNCPagerViewComponentView.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ - (instancetype)initWithFrame:(CGRect)frame
4343
_scrollView.pagingEnabled = YES;
4444
_scrollView.showsHorizontalScrollIndicator = NO;
4545
_scrollView.showsVerticalScrollIndicator = NO;
46+
_scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
4647

4748
[self addSubview:_scrollView];
4849

ios/RNCPagerView.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ - (void)embed {
7878
_scrollView.pagingEnabled = YES;
7979
_scrollView.showsHorizontalScrollIndicator = NO;
8080
_scrollView.showsVerticalScrollIndicator = NO;
81+
_scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
8182
[self addSubview:_scrollView];
8283

8384
_containerView = [[UIView alloc] initWithFrame:self.bounds];

0 commit comments

Comments
 (0)