teaset icon indicating copy to clipboard operation
teaset copied to clipboard

有没有打算解决一下SegmentedView 使用carousel模式与Carousel组件嵌套手势冲突的问题?

Open footygoodman opened this issue 6 years ago • 2 comments

说白了就是两个ScrollView嵌套手势冲突,作者有打算把这个问题处理一下吗?

footygoodman avatar Jul 05 '18 03:07 footygoodman

两个 ScrollView 嵌套滚动方向一横一竖没有问题,同样方向肯定有冲突,你可以禁止事件冒泡来保证滑动内部 ScrollView 时不影响外部 ScrollView

rilyu avatar Jul 12 '18 06:07 rilyu

<View onStartShouldSetResponder={(evt) => false} onMoveShouldSetResponder={(evt) => false}> <ListRow title="房子1" accessory="indicator" swipeActions={[ <ListRow.SwipeActionButton title="取消" />, <ListRow.SwipeActionButton title="删除" type="danger" onPress={() => alert('Remove')} />, ]} /> </View> 使用上面这种方式好像阻止不了外部carousel模式的SegmentedView的左右滑动,请教一下如何“禁止事件冒泡来保证滑动内部 ScrollView 时不影响外部 ScrollView”

haobrother avatar Jun 16 '20 06:06 haobrother