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.

[Android] Impossible to scroll WebView inside a ScrollView that is already in scroll mode

See original GitHub issue

Description

[I did go through earlier issues and this is not what is depicted in Issue #4773] I have a WebView inside a ScrollView. The WebView has a height and everything goes well (scrolling and all)

<ScrollView style={{flex:1}}>
 
	<View> ... </View>  
         
	<WebView
		...
		style={{height:heightValue}}
	/> 

</ScrollView>

till the view above in the example have to display information that take more space. The scrolling of ScrollView then kicks in and deny WebView its Code-Given right to scroll 😃.

Reproduction

 heightValue = 1000 // putting 100 will let the Webview scroll normally.

  <ScrollView style={{flex:1}}> 

	<View> <Text> Viewtiful </Text> </View>  
         
	<WebView
		source={{uri: 'www.reddit.com'}}
		style={{height:heightValue}}
	/> 

  </ScrollView>

Additional Information

  • React Native version: 0.34.1
  • Platform: Android
  • Operating System: Windows

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
hramoscommented, Oct 27, 2017

I’d prefer if a new issue was opened, since we’ve added a new template with additional requirements since this issue was originally filed.

0reactions
vvavepacketcommented, Jun 24, 2018

issue still exists on 0.55, did anyone manage to find workaround with this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android scrolling issue webview inside scrollview with ...
I have a viewpager which contains a layout with scrollview as parent and webview as child ...
Read more >
ScrollView - .NET MAUI - Microsoft Learn
NET MAUI) ScrollView is a view that's capable of scrolling its content. By default, ScrollView scrolls its content vertically.
Read more >
WebView inside a ScrollView. Scroll problems
Hi I have a WebView inside a ScrollView . But when I try to scroll in the WebView section I can`t scroll. Only...
Read more >
How to simultaneously scroll the WebView content ... - Reddit
The webView is always visible on screen and it is in front of the scrollView. What I want to achieve is this: As...
Read more >
WebView - Android Developers
The content of this view will be considered for scroll capture if scrolling is possible. int, SCROLL_CAPTURE_HINT_EXCLUDE. Explicitly exclude this view as a ......
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