How to disable only the setState message warning on react native
问题 I want to disable the setState message warning On the layout 1 : My constructor : constructor(props){ super(props); //Constructeur this.lestachesitemsRef=getDatabase().ref('n0rhl66bifuq3rejl6118k8ppo/lestaches'); this.lestachesitems=[]; this.state={ //Debutdustate lestachesSource: new ListView.DataSource({rowHasChanged: (row1, row2)=>row1 !== row2}), Prenom: '', Nom: '',} } My function : ajouter= () => { if( (this.state.Nom !== '') && (this.state.Prenom !== '')) { this.lestachesitemsRef.push(