react-native-lazyload
react-native-lazyload copied to clipboard
Prop warnings stickyHeaderIndices, onEndReachedThreshold, renderScrollComponent
I have tried the example of LazyLoadListView you provided and i am getting warnings
// I figured this out
Failed prop type: Required prop stickyHeaderIndices was not specified in LazyloadListView.
// I Figured this out
Failed prop type: Required prop onEndReachedThreshold was not specified in LazyloadListView.
// Still have to
Failed prop type: Required prop renderScrollComponent was not specified in LazyloadListView.
I have followed everything as you shown in example, but i cant seem to figure out why im getting this errors
How did you solve the first two? Thx
They forgot to put the defaultProps, you can quickly fix it editing LazyloadListView.js here
...
class LazyloadListView extends Component{
static displayName = 'LazyloadListView';
static propTypes = {
...ListView.propTypes
};
// THIS IS MISSING
static defaultProps = {
...ListView.defaultProps
}
refresh () {
...
I've created a PR with the fix https://github.com/magicismight/react-native-lazyload/pull/21
@mtt87 I merged your fixes on my fork: https://github.com/decebal/react-native-lazyload, thank you