简体   繁体   中英

React-Native | panResponder inside ScrollView

I've got horizontal ScrollView with some thumbnails. I defined panResponder to my thumbnails in order to drag them on the screen. The problem is that I can't drag them outside the ScrollView - the thumbnail become hidden when my finger is exceeds the borders of the ScrollView .

There is a way to make this work?

Thanks

如果您想超越父边界,请尝试使用绝对样式。

You can set overflow: 'visible' unfortunately it is working only in iOS because of: https://github.com/facebook/react-native/issues/6802

I Had a similar issue: How to enable dragging between two react-native-swiper components?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM