0
我正在使用索引值顯示列表項和一個按鈕,同時我點擊列表項索引中的按鈕,其他列表項應顯示爲禁用。會有可能嗎?如何禁用觸摸操作,而其他觸摸事件在React本機中執行?
<TouchableOpacity onPress={() => {this.downloadLessonItems()}}>
{!this.state.isDownloading && !this.state.isDownloaded &&
<Image
style={styles.imgContainer}
source={this.state.downloadImageURI} />}
</TouchableOpacity>
this.state.disable是指? –
只能控制禁用的道具,因爲您可以將其設置爲true或false –
我們是否也可以使用禁用禁用導航? –