mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-23 06:48:35 +00:00
[change] Remove scrollWithoutAnimationTo from ScrollView
Remove this API which was previously deprecated.
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user