How to disable react native warning message at the bottom

前端 未结 6 1168
予麋鹿
予麋鹿 2021-01-12 04:16

I\'m working on a react-native IOS app, and this app sometimes will raise a Warning message \"setState(...) Can only update a mounted or mounting component. ...\", I underst

6条回答
  •  清歌不尽
    2021-01-12 05:16

    To disable only this warning message use the following code on possible files

    console.ignoredYellowBox = ['Warning: setState(...)'];
    

提交回复
热议问题