0

如何在 React Native 中使用 SectionList 中的复选框来选中或取消选中。不使用第三方模块。

4

1 回答 1

1

renderItem() 道具让您可以在列表项中呈现您想要的任何内容。你可以:

<Checkbox
  checked={this.state.checked}
  onCheck={e => this.setState({ checked: e.target.checked})}/>
于 2018-04-28T07:30:30.517 回答