mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
b633cc1305
Summary: We're replacing console.disableYellowBox (untyped, global hack, only warnings) with LogBox.ignoreAllLogs() (typed, local method, handles errors and warnings). rickhanlonii made the initial deprecation of this >2 years ago in https://github.com/facebook/react-native/commit/87f1e22434210ad22f526422bbda0413f59786ce . This diff finally removes the support of `console.disableYellowBox`. Users of LogBox should be using `LogBox.ignoreAllLogs`. This removal also allows us to move LogBox to strict mode flow. Changelog: [BREAKING] [Removed] Removed console.disableYellowBox in favor of LogBox.ignoreAllLogs. Reviewed By: rickhanlonii, yungsters Differential Revision: D34689343 fbshipit-source-id: 3b2865a4918de703e47cd722e3f396475254c65a