mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-27 08:55:39 +00:00
cd90e59325
Signed-off-by: Oskar Thoren <ot@oskarthoren.com>
20 lines
755 B
Clojure
20 lines
755 B
Clojure
(ns status-im.core
|
|
(:require [status-im.utils.error-handler :as error-handler]
|
|
[status-im.ui.components.react :as react]
|
|
[re-frame.core :as re-frame]
|
|
[reagent.core :as reagent]
|
|
[status-im.native-module.core :as status]
|
|
[taoensso.timbre :as log]
|
|
[status-im.utils.config :as config]
|
|
[goog.object :as object]))
|
|
|
|
(when js/goog.DEBUG
|
|
(object/set js/console "ignoredYellowBox" #js ["re-frame: overwriting"]))
|
|
|
|
(defn init [app-root]
|
|
(log/set-level! config/log-level)
|
|
(error-handler/register-exception-handler!)
|
|
(status/init-jail)
|
|
(.registerComponent react/app-registry "StatusIm" #(reagent/reactify-component app-root))
|
|
(re-frame/dispatch-sync [:initialize-app]))
|