From 9019220ed3dd6ad927e5798021ce4f2b0dcdbb30 Mon Sep 17 00:00:00 2001 From: Alexandre Giordanelli Date: Wed, 6 Feb 2019 00:43:58 -0200 Subject: [PATCH] scrollIsInverted --- lib/KeyboardTrackingViewManager.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/KeyboardTrackingViewManager.m b/lib/KeyboardTrackingViewManager.m index 800bd35..71951f2 100644 --- a/lib/KeyboardTrackingViewManager.m +++ b/lib/KeyboardTrackingViewManager.m @@ -185,7 +185,7 @@ - (void)initializeAccessoryViewsAndHandleInsets if(_scrollViewToManage != nil) { - _scrollIsInverted = CGAffineTransformEqualToTransform(_scrollViewToManage.superview.transform, CGAffineTransformMakeScale(1, -1)); + _scrollIsInverted = self.scrollIsInverted; } } @@ -629,6 +629,7 @@ @implementation KeyboardTrackingViewManager RCT_REMAP_VIEW_PROPERTY(scrollBehavior, scrollBehavior, KeyboardTrackingScrollBehavior) RCT_REMAP_VIEW_PROPERTY(revealKeyboardInteractive, revealKeyboardInteractive, BOOL) RCT_REMAP_VIEW_PROPERTY(manageScrollView, manageScrollView, BOOL) +RCT_REMAP_VIEW_PROPERTY(scrollIsInverted, scrollIsInverted, BOOL) RCT_REMAP_VIEW_PROPERTY(requiresSameParentToManageScrollView, requiresSameParentToManageScrollView, BOOL) RCT_REMAP_VIEW_PROPERTY(addBottomView, addBottomView, BOOL) RCT_REMAP_VIEW_PROPERTY(scrollToFocusedInput, scrollToFocusedInput, BOOL)