Skip to content

Commit

Permalink
Desktop works with react-navigation v3
Browse files Browse the repository at this point in the history
  • Loading branch information
vkjr committed Oct 1, 2019
1 parent 9f6db66 commit 070e8a1
Show file tree
Hide file tree
Showing 160 changed files with 1,167 additions and 735 deletions.
2 changes: 1 addition & 1 deletion .env
Expand Up @@ -19,5 +19,5 @@ SNOOPY=0
RPC_NETWORKS_ONLY=0
PARTITIONED_TOPIC=0
CONTRACT_NODES=1
MOBILE_UI_FOR_DESKTOP=0
MOBILE_UI_FOR_DESKTOP=1
STATUS_GO_PROTOCOL=0
2 changes: 1 addition & 1 deletion .env.e2e
Expand Up @@ -17,4 +17,4 @@ SNOOPY=0
STICKERS_ENABLED=1
PARTITIONED_TOPIC=0
CONTRACT_NODES=1
MOBILE_UI_FOR_DESKTOP=0
MOBILE_UI_FOR_DESKTOP=1
2 changes: 1 addition & 1 deletion .env.jenkins
Expand Up @@ -19,4 +19,4 @@ SNOOPY=0
RPC_NETWORKS_ONLY=0
PARTITIONED_TOPIC=0
CONTRACT_NODES=1
MOBILE_UI_FOR_DESKTOP=0
MOBILE_UI_FOR_DESKTOP=1
2 changes: 1 addition & 1 deletion .env.nightly
Expand Up @@ -17,5 +17,5 @@ SNOOPY=0
RPC_NETWORKS_ONLY=0
PARTITIONED_TOPIC=0
CONTRACT_NODES=1
MOBILE_UI_FOR_DESKTOP=0
MOBILE_UI_FOR_DESKTOP=1
HARDWALLET_ENABLED=1
2 changes: 1 addition & 1 deletion .env.release
Expand Up @@ -16,4 +16,4 @@ POW_TIME=1
SNOOPY=0
RPC_NETWORKS_ONLY=1
PARTITIONED_TOPIC=0
MOBILE_UI_FOR_DESKTOP=0
MOBILE_UI_FOR_DESKTOP=1
2 changes: 1 addition & 1 deletion ci/Jenkinsfile.combined
Expand Up @@ -22,7 +22,7 @@ pipeline {
cmn = load('ci/common.groovy')
gh = load('ci/github.groovy')
/* just for a shorter access */
btype = cmn.utils.getBuildType()
btype = cmn.utils.getBuildType()
} }
}
stage('Build') {
Expand Down
3 changes: 2 additions & 1 deletion clj-rn.conf.edn
Expand Up @@ -72,14 +72,15 @@
"react-native-desktop-config"
"react-native-desktop-shortcuts"
"react-native-desktop-notification"
"react-native-desktop-gesture-handler"
"web3-utils"
"react-navigation"
"react-native-navigation-twopane"
"hi-base32"]

;; Resoures
:resource-dirs ["resources/images"
"resources/icons"]
"desktop/resources"]

:figwheel-options {:nrepl-port 7888
:nrepl-middleware ["cider.nrepl/cider-middleware"
Expand Down
5 changes: 3 additions & 2 deletions components/src/status_im/ui/components/react.cljs
Expand Up @@ -224,8 +224,9 @@
(.catch show-access-error)))))

;; Net info

(def net-info (.-default js-dependencies/net-info))
(def net-info (if platform/desktop?
(get-react-property "NetInfo")
(.-default js-dependencies/net-info)))

;; Clipboard

Expand Down

0 comments on commit 070e8a1

Please sign in to comment.