2017-11-14 16:18:15 +01:00
(ns status-im.core
2018-07-23 14:14:06 +02:00
(:require [re-frame.core :as re-frame]
[status-im.utils.error-handler :as error-handler]
2018-11-20 19:36:11 +01:00
[status-im.utils.platform :as platform]
2017-11-14 16:18:15 +01:00
[status-im.ui.components.react :as react]
[reagent.core :as reagent]
2018-05-14 17:32:44 +02:00
status-im.transport.impl.receive
2018-07-19 17:51:06 +02:00
status-im.transport.impl.send
2018-03-23 17:17:53 +03:00
[status-im.react-native.js-dependencies :as js-dependencies]
2019-04-30 14:49:45 +03:00
[status-im.utils.logging.core :as utils.logs]
2018-08-28 19:21:07 +03:00
cljs.core.specs.alpha))
2017-12-21 17:33:51 +07:00
2019-02-11 22:24:36 +01:00
(if js/goog.DEBUG
2019-09-14 16:26:44 +02:00
(.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."])
2019-02-11 22:24:36 +01:00
(aset js/console "disableYellowBox" true))
2017-11-14 16:18:15 +01:00
(defn init [app-root]
2019-04-30 14:49:45 +03:00
(utils.logs/init-logs)
2017-11-14 16:18:15 +01:00
(error-handler/register-exception-handler!)
2018-09-06 12:04:12 +02:00
(re-frame/dispatch [:init/app-started])
2019-10-28 15:52:25 +01:00
(.registerComponent react/app-registry "StatusIm" #(reagent/reactify-component app-root)))