New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WebView] onScroll #1961
Comments
👍 Although I am looking into how I could do this with what's already available. |
Nobody working on this, and it seems a bit niche so maybe it is best suited for an external library. What are the use cases that you need it for? |
A simple use case for this would be to be able to handle the onScroll so that a navbar (or other interaction elements) could be hidden based on the scroll event. Probably more of a community thing though. I will be looking into this sometime soon. |
@MossP So do you have some ideas? |
1 similar comment
@MossP So do you have some ideas? |
Ah, sorry @wilcosheh I somehow missed your comment. @kinhunt. I have some ideas but the requirement for it in the app i was writing was removed so I didn't flesh them out fully. Injecting script using the https://github.com/alinz/react-native-webview-bridge and checking for the state of scroll inside the webview and passing that back.. the issue i thought of though was that the scroll events may overlap and you would be hiding one thing and creating an incverted scroll inside the webview which then may unhide the navbar again. To get around this it could be on a delay but I didn;t get that far. |
@MossP it's a smart workaround and the bridge module is cool. I will give it a try, the overlap issue seems to be difficult to solve. |
Hi there! This issue is being closed because it has been inactive for a while. But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/webview-onscroll ProductPains helps the community prioritize the most important issues thanks to its voting feature. Also, if this issue is a bug, please consider sending a pull request with a fix. |
Would like to be able to set an
onScroll
handler for a WebView.The text was updated successfully, but these errors were encountered: