From bee7804fd0a2dbc1a0c957526f1f8c39005d3926 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Thu, 5 Dec 2019 15:58:44 +0200 Subject: [PATCH] Suppress lifecycle warnings after RN upgrade --- src/status_im/core.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/status_im/core.cljs b/src/status_im/core.cljs index 28ad323a07..4bc9441673 100644 --- a/src/status_im/core.cljs +++ b/src/status_im/core.cljs @@ -13,8 +13,8 @@ (if js/goog.DEBUG (.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."]) + "Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details." + "Warning: componentWillUpdate has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details."]) (aset js/console "disableYellowBox" true)) (defn init [app-root]