Skip to content

Commit c7e8990

Browse files
elicwhitefacebook-github-bot
authored andcommitted
Remove scrollWithoutAnimationTo from ScrollView
Summary: This function was deprecated in Dec 2016. It has no callsites at FB and should be deleted. Reviewed By: zackargyle, ejanzer Differential Revision: D17180174 fbshipit-source-id: de3ab78c469220b629ef7f6773d60507959f6db6
1 parent 54b645d commit c7e8990

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

Libraries/Components/ScrollResponder.js

-13
Original file line numberDiff line numberDiff line change
@@ -480,19 +480,6 @@ const ScrollResponderMixin = {
480480
);
481481
},
482482

483-
/**
484-
* Deprecated, do not use.
485-
*/
486-
scrollResponderScrollWithoutAnimationTo: function(
487-
offsetX: number,
488-
offsetY: number,
489-
) {
490-
console.warn(
491-
'`scrollResponderScrollWithoutAnimationTo` is deprecated. Use `scrollResponderScrollTo` instead',
492-
);
493-
this.scrollResponderScrollTo({x: offsetX, y: offsetY, animated: false});
494-
},
495-
496483
/**
497484
* A helper function to zoom to a specific rect in the scrollview. The argument has the shape
498485
* {x: number; y: number; width: number; height: number; animated: boolean = true}

Libraries/Components/ScrollView/ScrollView.js

-14
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ export type ScrollResponderType = {
7373

7474
setNativeProps: $PropertyType<ScrollView, 'setNativeProps'>,
7575
scrollTo: $PropertyType<ScrollView, 'scrollTo'>,
76-
scrollWithoutAnimationTo: $PropertyType<
77-
ScrollView,
78-
'scrollWithoutAnimationTo',
79-
>,
8076
flashScrollIndicators: $PropertyType<ScrollView, 'flashScrollIndicators'>,
8177

8278
...typeof ScrollResponder.Mixin,
@@ -840,16 +836,6 @@ class ScrollView extends React.Component<Props, State> {
840836
});
841837
}
842838

843-
/**
844-
* Deprecated, use `scrollTo` instead.
845-
*/
846-
scrollWithoutAnimationTo(y: number = 0, x: number = 0) {
847-
console.warn(
848-
'`scrollWithoutAnimationTo` is deprecated. Use `scrollTo` instead',
849-
);
850-
this.scrollTo({x, y, animated: false});
851-
}
852-
853839
/**
854840
* Displays the scroll indicators momentarily.
855841
*

0 commit comments

Comments
 (0)