Skip to content

Commit

Permalink
Move to style file
Browse files Browse the repository at this point in the history
  • Loading branch information
ulisesmac committed Nov 10, 2023
1 parent b0b3ff2 commit bf042f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@
(:require [quo.foundations.colors :as colors]
[react-native.safe-area :as safe-area]))

(defn container []
{:flex 1
:margin-top (safe-area/get-top)})

(def background-image
{:position :absolute
:top (- (safe-area/get-top))
:left 0
:right 0
:bottom 200})

(defn page-content
[height]
{:flex 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
(:require [quo.core :as quo]
[re-frame.core :as rf]
[react-native.core :as rn]
[react-native.safe-area :as safe-area]
[reagent.core :as reagent]
[status-im2.common.floating-button-page.view :as floating-button-page]
[status-im2.common.resources :as resources]
Expand All @@ -13,9 +12,7 @@
(let [content-height (reagent/atom 450)
slide? (reagent/atom false)]
(fn []
[rn/view
{:flex 1
:margin-top (safe-area/get-top)}
[rn/view {:style (style/container)}
(when-not @slide?
[rn/image
{:style style/background-image
Expand Down Expand Up @@ -43,8 +40,7 @@
{:container-style {:z-index 2}
:on-press #(js/alert "button pressed")}
"Save address"])}
[rn/view
{:style (style/page-content @content-height)}
[rn/view {:style (style/page-content @content-height)}
[quo/text {:size :heading-1} "Page Content"]
[quo/input
{:auto-focus true
Expand Down

0 comments on commit bf042f8

Please sign in to comment.