react-native-infinite-scroll-view
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -11,3 +11,2 @@ 'use strict'; | ||
let autobind = require('autobind-decorator'); | ||
let cloneReferencedElement = require('react-native-clone-referenced-element'); | ||
@@ -43,2 +42,4 @@ | ||
}; | ||
this._onLoadMoreAsync = this._onLoadMoreAsync.bind(this); | ||
} | ||
@@ -96,7 +97,8 @@ | ||
if (this._distanceFromEnd(event) < this.props.distanceToLoadMore) { | ||
this._onLoadMoreAsync(); | ||
this._onLoadMoreAsync().catch(error => { | ||
console.error('Unexpected error while loading more content:', error); | ||
}); | ||
} | ||
} | ||
@autobind | ||
async _onLoadMoreAsync() { | ||
@@ -103,0 +105,0 @@ if (this.state.isLoading && __DEV__) { |
{ | ||
"name": "react-native-infinite-scroll-view", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "An infinitely scrolling view that notifies you as the scroll offset approaches the bottom", | ||
@@ -26,3 +26,2 @@ "main": "InfiniteScrollView.js", | ||
"dependencies": { | ||
"autobind-decorator": "^1.3.2", | ||
"react-native-clone-referenced-element": "^1.0.0", | ||
@@ -29,0 +28,0 @@ "react-native-scrollable-mixin": "^1.0.0" |
9074
2
151
- Removedautobind-decorator@^1.3.2
- Removedautobind-decorator@1.4.3(transitive)