[Feature Request] Expose boolean value when user hits absolute end of a resource when in vertical scroll mode
For iOS, Iโve been able to expose a value that lets me know when Iโve reached the very end of a resource (when settings.scroll is true). I did so by using navigator.evaluateJavascript to calculate scroll heights, viewport height, etc. I use this value then to allow a user to tap an arrow to go to the next chapter (rather than swiping left, a project requirement).
I donโt consider myself a Android developer at all, I have just been able to piece things together thus far. Iโm really stumped on how I can achieve this on the Kotlin side of things. I've tried to access the webView and evaluate the JS similarly but haven't had much success. Banging my head against the wall at this point.
Is this something one of the maintainers might be able to take a minute and lend a hand on? Would be happy to PR this feature if I was able to make it work for Android.
Thanks!
Hey @alecdhansen , could you walk me through the use-case for something like this? Currently I'm not super clear on what it'd be used for.
Sure. I'm building a component that allows me to either tap an arrow or (using reanimated's GestureDetector) swipe up to go to the next chapter. This is only for vertical scroll mode. I use a ref and bridged the navigator.goForward() method from kotlin to handle the navigation.
My issue is, I need to know when I've hit the very end of a resource. I don't want to show the arrow or detect gestures until I've reached this point.