Skip to content

Commit

Permalink
fix: collectibles scroll crash (#18658)
Browse files Browse the repository at this point in the history
  • Loading branch information
clauxx authored Feb 6, 2024
1 parent 2e7a9c8 commit 431b6c3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/quo/components/profile/collectible/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
[quo.components.markdown.text :as text]
[quo.components.profile.collectible.style :as style]
[react-native.core :as rn]
[react-native.fast-image :as fast-image]
[react-native.svg :as svg]))

(defn remaining-tiles
Expand All @@ -25,7 +24,12 @@
{:style {:border-radius (:border-radius image-style)
:overflow :hidden}}
[svg/svg-uri (assoc image-style :uri (:uri resource))]]
[fast-image/fast-image
;; NOTE: using react-native-fast-image here causes a crash on devices when used inside a
;; large flatlist. The library seems to have issues with memory consumption when used with
;; large images/GIFs.
;;
;; https://github.com/DylanVann/react-native-fast-image/issues/195
[rn/image
{:style image-style
:source (if (string? resource)
{:uri resource
Expand Down

0 comments on commit 431b6c3

Please sign in to comment.