How to disable react native warning message at the bottom

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

    For Remote debugger

    console.ignoredYellowBox = ['Remote debugger'];
    

    and for all warning

    console.disableYellowBox = true;
    

提交回复
热议问题