react-native-bidirectional-infinite-scroll icon indicating copy to clipboard operation
react-native-bidirectional-infinite-scroll copied to clipboard

TypeError: undefined is not a function

Open vladimircherevko opened this issue 3 years ago • 3 comments

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

vladimircherevko avatar Dec 27 '21 17:12 vladimircherevko

Did you solve it this problem?

tomasruffa avatar Jan 17 '22 20:01 tomasruffa

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

vladimircherevko avatar Jan 18 '22 19:01 vladimircherevko

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

androsanta avatar Sep 21 '22 13:09 androsanta