mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 11:34:45 +00:00
Show spinner when refreshing wallet on iOS [#3667]
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
parent
1a314f12ac
commit
8aeeb19f22
@ -65,18 +65,18 @@
|
|||||||
|
|
||||||
;; Main section
|
;; Main section
|
||||||
|
|
||||||
(def main-section
|
(defstyle main-section
|
||||||
{:flex 1})
|
{:flex 1
|
||||||
|
:ios {:background-color colors/blue}})
|
||||||
|
|
||||||
(def scroll-top
|
(defstyle scroll-bottom
|
||||||
(let [height (:height (react/get-dimensions "window"))]
|
{:background-color colors/white
|
||||||
{:background-color colors/blue
|
:zIndex -1
|
||||||
:zIndex -1
|
:position :absolute
|
||||||
:position :absolute
|
:left 0
|
||||||
:height height
|
:right 0
|
||||||
:top (- height)
|
:android {:height 0}
|
||||||
:left 0
|
:ios {:height 9999}})
|
||||||
:right 0}))
|
|
||||||
|
|
||||||
(def section
|
(def section
|
||||||
{:background-color colors/blue})
|
{:background-color colors/blue})
|
||||||
|
@ -91,11 +91,12 @@
|
|||||||
[react/refresh-control {:on-refresh #(re-frame/dispatch [:update-wallet])
|
[react/refresh-control {:on-refresh #(re-frame/dispatch [:update-wallet])
|
||||||
:tint-color :white
|
:tint-color :white
|
||||||
:refreshing false}])}
|
:refreshing false}])}
|
||||||
[react/view {:style styles/scroll-top}] ;; Hack to allow different colors for top / bottom scroll view]
|
|
||||||
[total-section portfolio-value currency]
|
[total-section portfolio-value currency]
|
||||||
[list/action-list actions
|
[list/action-list actions
|
||||||
{:container-style styles/action-section}]
|
{:container-style styles/action-section}]
|
||||||
[asset-section assets currency]]]))
|
[asset-section assets currency]
|
||||||
|
;; Hack to allow different colors for bottom scroll view (iOS only)
|
||||||
|
[react/view {:style styles/scroll-bottom}]]]))
|
||||||
|
|
||||||
(views/defview wallet []
|
(views/defview wallet []
|
||||||
(views/letsubs [{:keys [wallet-set-up-passed?]} [:get-current-account]]
|
(views/letsubs [{:keys [wallet-set-up-passed?]} [:get-current-account]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user