question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

scrollEnabled false on Android

See original GitHub issue

Bug 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:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:11

github_iconTop GitHub Comments

12reactions
EmilianoMorghencommented, Feb 22, 2022

2022 here. Still not working on Android.

3reactions
SantyLorenzo-zzcommented, Jun 24, 2021

I am having the same issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found