Skip to content

Commit ea79e62

Browse files
authored
Fix for #3845 (#3846)
1 parent 1211da9 commit ea79e62

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/ios/reactnativeuilib/keyboardtrackingview/KeyboardTrackingViewTempManager.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ - (void)initializeAccessoryViewsAndHandleInsets
207207
{
208208
if(_scrollViewToManage == nil)
209209
{
210-
if ([NSStringFromClass([subview class]) isEqualToString:@"RCTScrollViewComponentView"]) {
210+
if ([NSStringFromClass([subview class]) isEqualToString:@"RCTScrollViewComponentView"] &&
211+
subview.superview != self) {
212+
211213
UIScrollView *scrollView = [self extractUIScrollView:subview];
212214

213215
if ([scrollView isKindOfClass:[UIScrollView class]])
@@ -434,9 +436,7 @@ - (NSArray*)getAllReactSubviewsForView:(UIView*)view
434436

435437
- (void)_updateScrollViewInsets
436438
{
437-
// Because our view is now being transformed inside it's superview (from RN77 it inherited a RCTLegacyViewManagerInteropComponentView as superview) we no longer need the scrollview to also update because it's inside our view
438-
return;
439-
/*if(self.scrollViewToManage != nil)
439+
if(self.scrollViewToManage != nil)
440440
{
441441
UIEdgeInsets insets = self.scrollViewToManage.contentInset;
442442
CGFloat bottomSafeArea = [self getBottomSafeArea];
@@ -483,7 +483,7 @@ - (void)_updateScrollViewInsets
483483
insets.bottom = bottomInset;
484484
}
485485
self.scrollViewToManage.scrollIndicatorInsets = insets;
486-
}*/
486+
}
487487
}
488488

489489
#pragma mark - bottom view

0 commit comments

Comments
 (0)