react-native: Nested scrollview is not working in react native android but working in ios ?
<ScrollView>
<View> <Text>Hello</Text> </View>
<View><Text>Hello</Text> </View>
<View><Text>Hello</Text> </View>
<View><Text>Hello</Text> </View>
<View>
<ScrollView>
<View> <Text>Hello</Text> </View>
<View><Text>Hello</Text> </View>
<View><Text>Hello</Text> </View>
<View><Text>Hello</Text> </View>
</ScrollView>
</View>
</ScrollView>
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 11
- Comments: 37 (9 by maintainers)
I think @prashanthnani means to say it’s not scrolling. Same issue with me too.
Same issue here
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.
Same issue here
Same issue here
I have same issue too, have any ways to solve ?
https://snack.expo.io/S11vIpHA-
Solution works for me, thank you, ashrithks
react-native: “0.48.4”
Any updates?
any solutions?
Stale bot is a nice way of reducing open issues count, but does it really help anybody? 🤬
https://gist.github.com/ashrithks/8d97f928d92643468a26e29c4d2dbb67
try the above , expo link:- https://snack.expo.io/S11vIpHA-
hacky way
Any updates? 😃
any updates?
any updates?
Vertical inside vertical, or horizontal inside horizontal, is a native android problem, and there are a lot of hacky workarounds out there on stackoverflow of folks trying to fix it. I don’t know much more about that.
As far having a vertical inside horizontal (or vice versa), this also appears to be a native Android problem.
ScrollView
children are dependent on the parent scrollview “passing” the touch event to the child. But the parent is basically configured with a certainmTouchSlop
(which I can’t find a way to override, even in native Java code), which causes it to absorb drags beyond that slop. Since the slop appears to be set low, it often prioritizes scrolling in the outer scrollview, and makes it difficult to scroll in the inner one.No idea on a fix. In my case, I may need to revert back to using something like a
react-native-viewpager
(which handles the scroll thresholds itself in JS, and is roughly equivalent to theFlatList
functionality I want). Though I recognize that only helps my specific use case, and probably won’t help most of you.