scrollEnabled false on Android
See original GitHub issueBug description:
Can’t disable scrolling (vertically) in WebView component. I have a WebView component with a simple HTML source within containing only text.
I’m using Expo. To Reproduce:
<WebView
scrollEnabled={false}
source={{ html: `
<div>
Some very long text here
</div>
` }}
/>
Expected behavior:
I want to disable scroll as I would with ScrollView for example, but prop scrollEnabled
set to false is not working for me. I tried to disable scrolling inside HTML with style="height: 100%; overflow: hidden;"
but this not working either.
Screenshots/Videos:
Environment:
- OS: Android
- OS version: 9.0 - API 28
- react-native version: sdk-37
- react-native-webview version: 10.3.2
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:11
Top Results From Across the Web
scrollEnabled false on Android · Issue #1490 · react-native ...
I have a WebView component with a simple HTML source within containing only text. I'm using Expo. To Reproduce: <WebView scrollEnabled={false} ...
Read more >React native + WebView: scrollEnabled={false} for android?
In ReactNative WebView, is there any way to achieves the same effect as scrollEnabled={false} in android (works only for ios)?.
Read more >WebView - React Native
Boolean that sets whether the WebView has access to the file system. The default value is false . Type, Required, Platform. bool, No,...
Read more >Scrolling ScrollView while scrollEnabled is false - Expo Snack
Scrolling ScrollView while scrollEnabled is false. Scrolling ScrollView while scrollEnabled is false. Open with Expo Go. Open in editor ...
Read more >ScrollView · React Native
When false, it disables all bouncing even if the alwaysBounce* props are true. ... On android this is not supported and it will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
2022 here. Still not working on Android.
I am having the same issue.