fix: intro screen carousel (#17269)

* fix: last slide showing for a split second

* fix: use scale resize-method to load image faster on android
This commit is contained in:
BalogunofAfrica 2023-09-19 08:51:55 +01:00 committed by GitHub
parent 9479f02b39
commit 95e0715163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -26,9 +26,10 @@
(defn background-image
[content-width]
[rn/image
{:style {:resize-mode :stretch
:margin-top 32
:width content-width}
{:style {:resize-mode :stretch
:resize-method :scale
:margin-top 32
:width content-width}
:source (resources/get-image :onboarding-illustration)}])
(defonce progress (atom nil))

View File

@ -64,7 +64,6 @@
(defn carousel-container
[left animate?]
(cond->> {:position :absolute
:right 0
:top 0
:flex-direction :row
:left left}