TypeError: onEndReached().then is not a function. (In 'onEndReached().then(p)', 'onEndReached().then' is undefined) Does this error mean that the function i supply to onEndReached prop is supposed to be asynchronous? Need some help on this please, deadline is in a few days!