【问题标题】:How do I check or uncheck by using checkbox in SectionList In React Native如何在 React Native 中使用 SectionList 中的复选框来选中或取消选中
【发布时间】:2018-04-28 06:30:06
【问题描述】:

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

【问题讨论】:

    标签: react-native checkbox react-native-sectionlist


    【解决方案1】:

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

    <Checkbox
      checked={this.state.checked}
      onCheck={e => this.setState({ checked: e.target.checked})}/>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-17
      • 2020-06-25
      • 2014-02-11
      • 2016-03-21
      • 2019-06-04
      • 2020-06-15
      相关资源
      最近更新 更多