mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-28 09:25:44 +00:00
5a69b4198e
Fix navigation to chat when PN is tapped while signed off. Fixes #3488 Anonymize PN pubkeys. Part of #6772
26 lines
1.1 KiB
Clojure
26 lines
1.1 KiB
Clojure
(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]
|
|
[status-im.ui.components.react :as react]
|
|
[status-im.notifications.background :as background-messaging]
|
|
[reagent.core :as reagent]
|
|
status-im.transport.impl.receive
|
|
status-im.transport.impl.send
|
|
[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"]))
|
|
|
|
(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)))
|