Skip to content

Commit

Permalink
Center text in QR code view
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrkhalil committed Apr 24, 2024
1 parent ce9abd1 commit 39e0493
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@
(def qr-code-view
{:padding-vertical vertical-padding
:align-items :center})

(def text-wrapper
{:flex-direction :row
:align-items :center})
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
:bottom-color-override colors/white-opa-5}]
[rn/view
{:style style/qr-top-wrapper}
[rn/view {:style {:flex-direction :row}}
[rn/view {:style style/text-wrapper}
(when thumbnail-uri
[fast-image/fast-image
{:source {:uri thumbnail-uri}
Expand All @@ -80,8 +80,7 @@
:url url
:avatar :community
:customization-color color
:picture (or thumbnail-uri (resources/get-mock-image :status-logo))
:full-name community-name}]]]
:picture (or thumbnail-uri (resources/get-mock-image :status-logo))}]]]
[quo/text
{:size :paragraph-2
:weight :regular
Expand Down

0 comments on commit 39e0493

Please sign in to comment.