WebView Scroll android not working
See original GitHub issueBug 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:
- Created 4 years ago
- Comments:6 (1 by maintainers)
Top 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 >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
I solved with this library https://github.com/iou90/react-native-autoheight-webview#readme
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