React Native Scroll View - 在Views之间选择空格时无法滚动

时间:2022-08-12 18:59:53

I have a ScrollView with rows of circles inside of it. The ScrollView only scrolls when I select the circles, but doesn't scroll when I select the space in between the circles.

我有一个ScrollView,里面有几排圆圈。 ScrollView仅在我选择圆圈时滚动,但在我选择圆圈之间的空格时不会滚动。

I'm trying to make a Snack but the website appears to be having issues. Has anyone encountered this before?

我正在尝试制作小吃,但该网站似乎有问题。有没有人遇到过这个?

2 个解决方案

#1


0  

It appears this was some strange interplay with a ScrollView inside of a React Native Paper card.

看起来这是与React Native Paper卡内部的ScrollView的一些奇怪的相互作用。

I didn't quite get to the bottom of it but I solved the problem by removing my dependency on React Native Paper and making my own card.

我没有完全了解它,但我通过消除对React Native Paper的依赖并制作我自己的卡解决了这个问题。

#2


-1  

Perhaps a FlatList would be more adequate to your purpose:

也许FlatList更适合您的目的:

https://facebook.github.io/react-native/docs/flatlist

#1


0  

It appears this was some strange interplay with a ScrollView inside of a React Native Paper card.

看起来这是与React Native Paper卡内部的ScrollView的一些奇怪的相互作用。

I didn't quite get to the bottom of it but I solved the problem by removing my dependency on React Native Paper and making my own card.

我没有完全了解它,但我通过消除对React Native Paper的依赖并制作我自己的卡解决了这个问题。

#2


-1  

Perhaps a FlatList would be more adequate to your purpose:

也许FlatList更适合您的目的:

https://facebook.github.io/react-native/docs/flatlist