From 95e0715163e38cb3a812769c56da82b98bf3c8da Mon Sep 17 00:00:00 2001 From: BalogunofAfrica <45393944+BalogunofAfrica@users.noreply.github.com> Date: Tue, 19 Sep 2023 08:51:55 +0100 Subject: [PATCH] fix: intro screen carousel (#17269) * fix: last slide showing for a split second * fix: use scale resize-method to load image faster on android --- .../contexts/onboarding/common/background/view.cljs | 7 ++++--- .../contexts/onboarding/common/carousel/style.cljs | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/status_im2/contexts/onboarding/common/background/view.cljs b/src/status_im2/contexts/onboarding/common/background/view.cljs index 31e31950c5..052523e91f 100644 --- a/src/status_im2/contexts/onboarding/common/background/view.cljs +++ b/src/status_im2/contexts/onboarding/common/background/view.cljs @@ -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)) diff --git a/src/status_im2/contexts/onboarding/common/carousel/style.cljs b/src/status_im2/contexts/onboarding/common/carousel/style.cljs index 82b88d9f64..0b94d33a23 100644 --- a/src/status_im2/contexts/onboarding/common/carousel/style.cljs +++ b/src/status_im2/contexts/onboarding/common/carousel/style.cljs @@ -64,7 +64,6 @@ (defn carousel-container [left animate?] (cond->> {:position :absolute - :right 0 :top 0 :flex-direction :row :left left}