expo / react-native-infinite-scroll-view

An infinitely scrolling view that notifies you as the scroll offset approaches the bottom
MIT License
519 stars 57 forks source link

Getting bluebird warnings about swallowed promises #14

Closed grabbou closed 8 years ago

grabbou commented 8 years ago

With Bluebird 3.x I am getting:

a promise was created in a handler but none were returned from it

that's coming from _loadMoreAsync() function. Not a big deal, but if we can manage to get rid of it, that'd be awesome!

I believe a fix would be to just add return at the end of the function as suggested here http://bluebirdjs.com/docs/warning-explanations.html#warning-a-promise-was-created-in-a-handler-but-none-were-returned-from-it. Otherwise, warnings have to be disabled.