diff --git a/package.json b/package.json index 61707e294f..d9ba677344 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "react-native-invertible-scroll-view": "^1.0.0", "react-native-level-fs": "^2.0.1", "react-native-linear-gradient": "2.0.0", - "react-native-network-info": "github:alwx/react-native-network-info", + "react-native-network-info": "2.0.0", "react-native-orientation": "github:youennPennarun/react-native-orientation", "react-native-popup-menu": "^0.7.1", "react-native-qrcode": "^0.2.2", diff --git a/src/status_im/chat/handlers/console.cljs b/src/status_im/chat/handlers/console.cljs index 6f5b944d31..c55522ac38 100644 --- a/src/status_im/chat/handlers/console.cljs +++ b/src/status_im/chat/handlers/console.cljs @@ -36,7 +36,9 @@ (get-ip (fn [ip] (dispatch [:received-message {:message-id (random/id) - :content (label :t/debug-enabled {:ip ip}) + :content (if ip + (label :t/debug-enabled {:ip ip}) + (label :t/debug-enabled-no-ip)) :content-type text-content-type :outgoing false :chat-id console-chat-id diff --git a/src/status_im/components/network_info.cljs b/src/status_im/components/network_info.cljs index 861ca5a424..f0558797cc 100644 --- a/src/status_im/components/network_info.cljs +++ b/src/status_im/components/network_info.cljs @@ -1,7 +1,7 @@ (ns status-im.components.network-info (:require [taoensso.timbre :as log])) -(def network-info-class (js/require "react-native-network-info")) +(def network-info-class (.-NetworkInfo (js/require "react-native-network-info"))) (defn get-ip [callback] (.getIPAddress network-info-class diff --git a/src/status_im/translations/en.cljs b/src/status_im/translations/en.cljs index 99f8d1bb86..1193cb7fe9 100644 --- a/src/status_im/translations/en.cljs +++ b/src/status_im/translations/en.cljs @@ -124,6 +124,7 @@ :account-generation-message "Gimmie a sec, I gotta do some crazy math to generate your account!" :move-to-internal-failure-message "We need to move some important files from external to internal storage. To do this, we need your permission. We won't be using external storage in future versions." :debug-enabled "Debug server has been launched! Your IP address is {{ip}}. You can now add your DApp by running *status-dev-cli add-dapp --ip {{ip}}* from your computer" + :debug-enabled-no-ip "Debug server has been launched! You can now add your DApp by running *status-dev-cli add-dapp --ip [your ip]* from your computer" ;phone types :phone-e164 "International 1"