From 747dec908e4deabcd153ad1ec102c114aff356c0 Mon Sep 17 00:00:00 2001 From: yenda Date: Sat, 14 Sep 2019 16:26:44 +0200 Subject: [PATCH] remove yellowbox warnings for componentWillMount and WillUpdate --- src/status_im/core.cljs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/status_im/core.cljs b/src/status_im/core.cljs index 9b57752110..dd526db39c 100644 --- a/src/status_im/core.cljs +++ b/src/status_im/core.cljs @@ -12,7 +12,11 @@ cljs.core.specs.alpha)) (if js/goog.DEBUG - (.ignoreWarnings (.-YellowBox js-dependencies/react-native) #js ["re-frame: overwriting"]) + (.ignoreWarnings (.-YellowBox js-dependencies/react-native) + #js + ["re-frame: overwriting" + "Warning: componentWillMount is deprecated and will be removed in the next major version. Use componentDidMount instead. As a temporary workaround, you can rename to UNSAFE_componentWillMount." + "Warning: componentWillUpdate is deprecated and will be removed in the next major version. Use componentDidUpdate instead. As a temporary workaround, you can rename to UNSAFE_componentWillUpdate."]) (aset js/console "disableYellowBox" true)) (defn init [app-root]