Added deep-links tab

This commit is contained in:
Julien Eluard 2019-05-03 14:28:31 +02:00
parent 96552462d8
commit f8e8b6e2dd
4 changed files with 18 additions and 1 deletions

3
.gitignore vendored
View File

@ -1 +1,4 @@
# Created by .ignore support plugin (hsz.mobi)
node_modules/
target/
resources/public/js/compiled

View File

@ -30,6 +30,7 @@
[tab-button "Stickers" :stickers tab-view]
(when (exists? js/ethereumBeta)
[tab-button "Beta Provider" :beta tab-view])
[tab-button "Deep links" :deep-links tab-view]
[tab-button "About" :about tab-view]]
[react/view {:style {:height 1 :margin-top 10 :background-color "#4360df33"}}]])

View File

@ -30,4 +30,11 @@
uppercase? (map #(when % (string/upper-case %))))]
(vec (concat
[text-class opts]
ts))))))
ts))))))
(def linking (.-Linking js/ReactNativeWeb))
(defn link
[{:keys [href]} s]
[text {:accessibilityRole "link" :href href :style {:color "blue" :text-decoration-line "underline"}}
s])

View File

@ -197,6 +197,12 @@
[ui/label "Scan QR result: " ""]
[react/text @qr-result]]])
(when (= :deep-links tab-view)
[react/view
[react/view {:style {:flex-direction :row :padding-vertical 10}}
[react/link {:href "ethereum:0x89205a3a3b2a69de6dbf7f01ed13b2108b2c43e7"}
"EIP681 deep-link"]]])
(when (= :about tab-view)
[react/view
[react/view {:style {:flex-direction :row :padding-vertical 10}}