react-native-auto-scroll icon indicating copy to clipboard operation
react-native-auto-scroll copied to clipboard

Android performance issue cause closing app

Open cinder92 opened this issue 7 years ago • 2 comments

Hey! thanks for your awesome plugin, it really works, i just test this module on a phisical device, and when i scroll the AutoScroll is to sloooooooow, idk what it is, but app closing for that, in your code i saw a comment that says repeated called on Android there is a way to no make a setTimeout each 500ms?

Thanks!

cinder92 avatar Jun 10 '17 01:06 cinder92

Thanks! @cinder92

yeah, maybe I should also call clearTimeout before setTimeout.

or I should have used react-timer-mixin mixin. https://facebook.github.io/react-native/docs/timers.html#timermixin

any idea?

fritx avatar Jun 10 '17 06:06 fritx

But the line including setTimeout is only called when scrollHeight === null.

fritx avatar Jun 10 '17 06:06 fritx