[change] Remove scrollWithoutAnimationTo from ScrollView

Remove this API which was previously deprecated.
This commit is contained in:
Nicolas Gallagher
2020-04-20 15:56:42 -07:00
parent 37ff6b4888
commit 7ab3cf0d42
2 changed files with 0 additions and 18 deletions
@@ -120,14 +120,6 @@ const ScrollView = ((createReactClass({
scrollResponder.scrollResponderScrollTo({ x, y, animated });
},
/**
* Deprecated, do not use.
*/
scrollWithoutAnimationTo(y: number = 0, x: number = 0) {
console.warn('`scrollWithoutAnimationTo` is deprecated. Use `scrollTo` instead');
this.scrollTo({ x, y, animated: false });
},
render() {
const {
contentContainerStyle,
@@ -385,16 +385,6 @@ const ScrollResponderMixin = {
}
},
/**
* Deprecated, do not use.
*/
scrollResponderScrollWithoutAnimationTo: function(offsetX: number, offsetY: number) {
console.warn(
'`scrollResponderScrollWithoutAnimationTo` is deprecated. Use `scrollResponderScrollTo` instead'
);
this.scrollResponderScrollTo({ x: offsetX, y: offsetY, animated: false });
},
/**
* A helper function to zoom to a specific rect in the scrollview. The argument has the shape
* {x: number; y: number; width: number; height: number; animated: boolean = true}