mirror of
https://github.com/status-im/status-react.git
synced 2025-01-13 04:24:40 +00:00
9cfb591068
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
22 lines
884 B
Clojure
22 lines
884 B
Clojure
(ns status-im.core
|
|
(:require [status-im.utils.error-handler :as error-handler]
|
|
[status-im.ui.components.react :as react]
|
|
[reagent.core :as reagent]
|
|
[status-im.native-module.core :as status]
|
|
status-im.transport.impl.receive
|
|
[taoensso.timbre :as log]
|
|
[status-im.utils.config :as config]
|
|
[status-im.react-native.js-dependencies :as js-dependencies]
|
|
[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)
|
|
(when config/testfairy-enabled?
|
|
(.begin js-dependencies/testfairy config/testfairy-token))
|
|
(.registerComponent react/app-registry "StatusIm" #(reagent/reactify-component app-root)))
|