mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Migrate RCTScrollView off of deprecated scrollIndicatorInsets (#44789)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44789 # Changelog [iOS][Fixed] Remove usage of deprecated scrollIndicatorInsets in RCTScrollView Reviewed By: cipolleschi Differential Revision: D58157667 fbshipit-source-id: be0fd4075934060f9419a8164ad3f7fd378d3ce7
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ed9978b8de
commit
ce10ce4d98
@@ -364,7 +364,7 @@ static inline UIViewAnimationOptions animationOptionsWithCurve(UIViewAnimationCu
|
||||
options:animationOptionsWithCurve(curve)
|
||||
animations:^{
|
||||
self->_scrollView.contentInset = newEdgeInsets;
|
||||
self->_scrollView.scrollIndicatorInsets = newEdgeInsets;
|
||||
self->_scrollView.verticalScrollIndicatorInsets = newEdgeInsets;
|
||||
[self scrollToOffset:newContentOffset animated:NO];
|
||||
}
|
||||
completion:nil];
|
||||
@@ -1034,7 +1034,6 @@ RCT_SET_AND_PRESERVE_OFFSET(setScrollsToTop, scrollsToTop, BOOL)
|
||||
RCT_SET_AND_PRESERVE_OFFSET(setShowsHorizontalScrollIndicator, showsHorizontalScrollIndicator, BOOL)
|
||||
RCT_SET_AND_PRESERVE_OFFSET(setShowsVerticalScrollIndicator, showsVerticalScrollIndicator, BOOL)
|
||||
RCT_SET_AND_PRESERVE_OFFSET(setZoomScale, zoomScale, CGFloat);
|
||||
RCT_SET_AND_PRESERVE_OFFSET(setScrollIndicatorInsets, scrollIndicatorInsets, UIEdgeInsets);
|
||||
|
||||
- (void)setAutomaticallyAdjustsScrollIndicatorInsets:(BOOL)automaticallyAdjusts API_AVAILABLE(ios(13.0))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user