mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
Fix some ScrollView lint
Summary: $title Reviewed By: TheSavior Differential Revision: D8721334 fbshipit-source-id: 1aad238da9b8efdef6e2f3f1f2effd213fa9c3aa
This commit is contained in:
parent
2424ef5654
commit
f40de0e467
@ -875,7 +875,7 @@ const ScrollView = createReactClass({
|
||||
ScrollViewClass = RCTScrollView;
|
||||
ScrollContentContainerViewClass = RCTScrollContentView;
|
||||
warning(
|
||||
!this.props.snapToInterval || !this.props.pagingEnabled,
|
||||
this.props.snapToInterval != null || !this.props.pagingEnabled,
|
||||
'snapToInterval is currently ignored when pagingEnabled is true.',
|
||||
);
|
||||
}
|
||||
@ -1028,7 +1028,7 @@ const ScrollView = createReactClass({
|
||||
};
|
||||
|
||||
const {decelerationRate} = this.props;
|
||||
if (decelerationRate) {
|
||||
if (decelerationRate != null) {
|
||||
props.decelerationRate = processDecelerationRate(decelerationRate);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user