From ff00ad169ec953506d4bb48841a0b3118c093508 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Fri, 9 Dec 2022 17:20:24 -0300 Subject: [PATCH] ui-lib still --- patches/react-native-ui-lib+4.2.0.patch | 35 ++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/patches/react-native-ui-lib+4.2.0.patch b/patches/react-native-ui-lib+4.2.0.patch index a41654a24..e701f7827 100644 --- a/patches/react-native-ui-lib+4.2.0.patch +++ b/patches/react-native-ui-lib+4.2.0.patch @@ -37,8 +37,7 @@ index cfe1d35..7ce5105 100644 __IPHONE_10_3 if (@available(iOS 11.0, *)) { +@@ -426,8 +416,8 @@ - (void)_updateScrollViewInsets + } + self.scrollViewToManage.contentInset = insets; + +- if(self.scrollBehavior == KeyboardTrackingScrollBehaviorScrollToBottomInvertedOnly && _scrollIsInverted) +- { ++// if(self.scrollBehavior == KeyboardTrackingScrollBehaviorScrollToBottomInvertedOnly && _scrollIsInverted) ++// { + BOOL fisrtTime = _ObservingInputAccessoryViewTemp.keyboardHeight == 0 && _ObservingInputAccessoryViewTemp.keyboardState == KeyboardStateHidden; + BOOL willOpen = _ObservingInputAccessoryViewTemp.keyboardHeight != 0 && _ObservingInputAccessoryViewTemp.keyboardState == KeyboardStateHidden; + BOOL isOpen = _ObservingInputAccessoryViewTemp.keyboardHeight != 0 && _ObservingInputAccessoryViewTemp.keyboardState == KeyboardStateShown; +@@ -435,12 +425,12 @@ - (void)_updateScrollViewInsets + { + [self.scrollViewToManage setContentOffset:CGPointMake(self.scrollViewToManage.contentOffset.x, -self.scrollViewToManage.contentInset.top) animated:!fisrtTime]; + } +- } +- else if(self.scrollBehavior == KeyboardTrackingScrollBehaviorFixedOffset && !self.isDraggingScrollView) +- { +- CGFloat insetsDiff = (bottomInset - originalBottomInset) * (self.scrollIsInverted ? -1 : 1); +- self.scrollViewToManage.contentOffset = CGPointMake(originalOffset.x, originalOffset.y + insetsDiff); +- } ++// } ++// if(!self.isDraggingScrollView) ++// { ++// CGFloat insetsDiff = (bottomInset - originalBottomInset) * (self.scrollIsInverted ? -1 : 1); ++// self.scrollViewToManage.contentOffset = CGPointMake(originalOffset.x, originalOffset.y + insetsDiff); ++// } + + insets = self.scrollViewToManage.contentInset; + if(self.scrollIsInverted) @@ -468,7 +458,6 @@ -(void)addBottomViewIfNecessary if (self.addBottomView && _bottomView == nil) {