Suppress lifecycle warnings after RN upgrade

This commit is contained in:
Roman Volosovskyi 2019-12-05 15:58:44 +02:00
parent 0b2490d20e
commit bee7804fd0
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 2 additions and 2 deletions

View File

@ -13,8 +13,8 @@
(if js/goog.DEBUG (if js/goog.DEBUG
(.ignoreWarnings (.-YellowBox js-dependencies/react-native) (.ignoreWarnings (.-YellowBox js-dependencies/react-native)
#js ["re-frame: overwriting" #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: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details."
"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: 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)) (aset js/console "disableYellowBox" true))
(defn init [app-root] (defn init [app-root]