react-native icon indicating copy to clipboard operation
react-native copied to clipboard

[ScrollView] Scrolling in both directions (horizontally and vertically) stops working on 0.28.0

Open neiker opened this issue 10 years ago • 7 comments

Hi!

My app needs to scroll both, horizontally and vertically, basically its a big canvas where you can draw, put objects, move them, etc. I was using horizontal={true} but now I upgrade to 0.28.0 and it doesn't work anymore. It just scrolls horizontally (makes sense, I think) but it doesn't scroll vertically anymore.

neiker avatar Jul 05 '16 16:07 neiker

This stills broken on 0.29.0 :(

neiker avatar Jul 11 '16 15:07 neiker

:+1:

johnnyhalife avatar Jul 11 '16 15:07 johnnyhalife

+1

v13j0 avatar Jul 11 '16 20:07 v13j0

this probably related to https://github.com/facebook/react-native/issues/8369

barbatus avatar Jul 16 '16 14:07 barbatus

Yes! Thanks! Setting the contentContainerStyle with a fixed size works in my case. But I don't think it'll work if you don't know the size of the content.

neiker avatar Jul 17 '16 03:07 neiker

Hi there! This issue is being closed because it has been inactive for a while.

But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/scrollview-scrolling-in-both-directions-horizontally-and-vertically-stops-working-on-0280

Product Pains has been very useful in highlighting the top bugs and feature requests: https://productpains.com/product/react-native?tab=top

Also, if this issue is a bug, please consider sending a pull request with a fix.

mkonicek avatar Oct 27 '16 22:10 mkonicek

solved

here is currently not a direct way to achieve this. If setting contentContainerStyle prop is not a problem for you, you can go that way. If it is, you can always use 2 nested ScrollViews. {this.buildContent()}

sumanlamsal avatar Oct 12 '17 08:10 sumanlamsal