1

我正在使用 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>
4

1 回答 1

0

通过将 pointerEvents="none" 添加到列视图来解决它

于 2020-02-02T05:41:35.503 回答