How to disable react native warning message at the bottom

前端 未结 6 1122
予麋鹿
予麋鹿 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:15

    the better solution is to write this in your index file:

    console.disableYellowBox = true;
    

提交回复
热议问题