React native function is not working the way it supposed to be

后端 未结 0 1673
孤街浪徒
孤街浪徒 2020-12-19 08:35

Here is my function:

setActive = (item) => {
    this.setState({ active: !item.active });
    item.active = !item.active;
    console.log("Before upda         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题