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.

WebView Scroll android not working

See original GitHub issue

Bug description:

On iOS scroll it’s working but android not.

<WebView
                    key={key}
                    source={{ html: }}
                    startInLoadingState={true}
                    renderLoading={() => (
                      <View
                        style={{
                          flex: 1,
                          alignItems: "center",
                          justifyContent: "center",
                          alignItems: "center"
                        }}
                      >
                        <ActivityIndicator
                          size="small"
                          color="#000"
                        />
                      </View>
                    )}
                    style={{ width: '100%', height: Dimensions.get("window").height, flex: 1 }}
                    automaticallyAdjustContentInsets={false}
                    javaScriptEnabled={true}
                    domStorageEnabled={true}
                    decelerationRate="normal"
                    startInLoadingState={true}
                    scalesPageToFit={true}
                    scrollEnabled={true}
                    useWebKit={true}
                  />

Environment:

  • react-native version: 0.59.9
  • react-native-webview version: ^5.6.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
mezalejandrocommented, Nov 14, 2019
3reactions
github-actions[bot]commented, Nov 14, 2019

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android WebView isn't scrollable - Stack Overflow
Try changing your webview from "Wrap Content" to some specific height. Then set the scrollables. Try something like 300dp and go from there....
Read more >
WebView/WebViewProvider needs to support nested scrolling ...
Currently there is no way to support nested scrolling for a WebViewProvider. All current workaround essentially uses the (global) scroll position of the ......
Read more >
React Native: Why Your WebView Disappears inside a ...
Placing a WebView inside a Scrollview can be problematic. The problem you would immediately come across is the WebView mysteriously disappearing.
Read more >
How to enable vertical scroll bar for android webview?
This example demonstrate about How to set default text encoded for android webview. Step 1 − Create a new project in Android Studio, ......
Read more >
Android webview does not scroll - Bug - AppGyver forums
On iOS the scrolling of the webview works perfectly fine, but for Android the scrolling doesn't work. It shows scroll bars and horizontal...
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