mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-04 02:56:42 +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 });
|
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() {
|
render() {
|
||||||
const {
|
const {
|
||||||
contentContainerStyle,
|
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
|
* 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}
|
* {x: number; y: number; width: number; height: number; animated: boolean = true}
|
||||||
|
|||||||
Reference in New Issue
Block a user