mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Ran rename-unsafe-lifecycles codemod on xplat/js
Reviewed By: trueadm Differential Revision: D6889214 fbshipit-source-id: e815cda4b09f3650ae3b0b9a44ae6f5fcb48fe25
This commit is contained in:
committed by
Facebook Github Bot
parent
fa334ce464
commit
6f007e8957
@@ -510,7 +510,7 @@ const ScrollView = createReactClass({
|
||||
};
|
||||
},
|
||||
|
||||
componentWillMount: function() {
|
||||
UNSAFE_componentWillMount: function() {
|
||||
this._scrollAnimatedValue = new Animated.Value(this.props.contentOffset ? this.props.contentOffset.y : 0);
|
||||
this._scrollAnimatedValue.setOffset(this.props.contentInset ? this.props.contentInset.top : 0);
|
||||
this._stickyHeaderRefs = new Map();
|
||||
|
||||
Reference in New Issue
Block a user