GetStream / react-native-bidirectional-infinite-scroll

📜 React Native - Bidirectional Infinite Smooth Scroll
https://getstream.github.io/react-native-bidirectional-infinite-scroll/
MIT License
236 stars 27 forks source link

TypeError: undefined is not a function #31

Open vladimircherevko opened 2 years ago

vladimircherevko commented 2 years ago

Hi. I copied the example and ran it in my application. Everything looked ok. Then I just scroll up to the bottom of the list and immediately scroll down to the top of the list and oops ... Maybe I missed something? Screenshot_1640626259

tomasruffa commented 2 years ago

Did you solve it this problem?

vladimircherevko commented 2 years ago

I resolved this way: copied the code and added in line 126 if (onEndReachedInPromise.current && onEndReachedInPromise.current.finally).

androsanta commented 1 year ago

Hi there😄, I'm having the same issue. It seems to be caused by the finally method not being defined. Could be the case only for hermes engine. Using a polyfill for Promise.finally solves the problem.

react-native: 0.68.2 node: 14.19.3