【发布时间】:2019-08-07 07:14:41
【问题描述】:
这是一个 React Native 问题。
我想要实现的是防止在用户拖动滚动视图的特定部分时触发滚动事件。
小例子:
<View style={{ width: '100%', flex: 1 }}>
<ScrollView>
<View style={{ width: '100%', height: 1600, backgroundColor: 'red' }}>
<View style={{ width: '100%', height: 600, backgroundColor: 'blue' }}/>
</View>
</ScrollView
</View>
如何禁用蓝色部分的拖动检测(滚动父scrollView)?
【问题讨论】:
标签: react-native react-native-android react-native-ios