Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ - (void)initializeAccessoryViewsAndHandleInsets
{
if(_scrollViewToManage == nil)
{
if ([NSStringFromClass([subview class]) isEqualToString:@"RCTScrollViewComponentView"]) {
if ([NSStringFromClass([subview class]) isEqualToString:@"RCTScrollViewComponentView"] &&
subview.superview != self) {

UIScrollView *scrollView = [self extractUIScrollView:subview];

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

- (void)_updateScrollViewInsets
{
// 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
return;
/*if(self.scrollViewToManage != nil)
if(self.scrollViewToManage != nil)
{
UIEdgeInsets insets = self.scrollViewToManage.contentInset;
CGFloat bottomSafeArea = [self getBottomSafeArea];
Expand Down Expand Up @@ -483,7 +483,7 @@ - (void)_updateScrollViewInsets
insets.bottom = bottomInset;
}
self.scrollViewToManage.scrollIndicatorInsets = insets;
}*/
}
}

#pragma mark - bottom view
Expand Down
Loading