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:
parent
9479f02b39
commit
95e0715163
|
@ -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))
|
||||
|
|
|
@ -64,7 +64,6 @@
|
|||
(defn carousel-container
|
||||
[left animate?]
|
||||
(cond->> {:position :absolute
|
||||
:right 0
|
||||
:top 0
|
||||
:flex-direction :row
|
||||
:left left}
|
||||
|
|
Loading…
Reference in New Issue