我使用的是react-native-actionsheet。如何禁用用作拾取器的ActionSheet (使其不可点击)?
我试过了:editable={false}。有没有更好的方法?
<View style={styles.Column}>
<Text style={styles.TextLabel} onPress={this.showActionSheet}>Structure Type:</Text>
<ActionSheet
ref={o => this.ActionSheet = o}
title={'Structure Type'}
options={['first', 'second', 'third', 'Cancel']}
cancelButtonIndex={3}
selectedValue={this.state.structureType}
value={this.state.structureType}
onPress={this.handleSTypePress}
editable={false}
/>
</View>发布于 2020-02-02 13:41:36
通过将pointerEvents="none“添加到列视图来解决此问题
https://stackoverflow.com/questions/60010209
复制相似问题