26 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-11-14 16:18:15 +01:00
(ns status-im.core
(:require [re-frame.core :as re-frame]
[status-im.utils.error-handler :as error-handler]
[status-im.utils.platform :as platform]
2017-11-14 16:18:15 +01:00
[status-im.ui.components.react :as react]
[status-im.notifications.background :as background-messaging]
2017-11-14 16:18:15 +01:00
[reagent.core :as reagent]
status-im.transport.impl.receive
status-im.transport.impl.send
2017-11-14 16:18:15 +01:00
[taoensso.timbre :as log]
[status-im.utils.config :as config]
[status-im.react-native.js-dependencies :as js-dependencies]
[goog.object :as object]
cljs.core.specs.alpha))
(when js/goog.DEBUG
(.ignoreWarnings (.-YellowBox js-dependencies/react-native) #js ["re-frame: overwriting"]))
2017-11-14 16:18:15 +01:00
(defn init [app-root]
(log/set-level! config/log-level)
(error-handler/register-exception-handler!)
(re-frame/dispatch [:init/app-started])
(.registerComponent react/app-registry "StatusIm" #(reagent/reactify-component app-root))
(when platform/android?
(.registerHeadlessTask react/app-registry "RNFirebaseBackgroundMessage" background-messaging/message-handler-fn)))