Logs for failed stickers

This commit is contained in:
Parvesh Monu 2024-08-16 14:07:45 +05:30
parent 37232eee7e
commit 6ed7e7a930
No known key found for this signature in database
GPG Key ID: F399696520817DE9
1 changed files with 7 additions and 2 deletions

View File

@ -1,10 +1,15 @@
(ns status-im.contexts.chat.messenger.messages.content.sticker-message.view
(:require [react-native.core :as rn]
[react-native.fast-image :as fast-image]))
[react-native.fast-image :as fast-image]
[oops.core :as oops]))
(defn view
[{:keys [url]}]
[rn/view {:style {:margin-top 6 :margin-bottom 4}}
[fast-image/fast-image
(print "------------ parvesh" url)
[rn/image
{:style {:width 120 :height 120}
:on-error (fn [e]
(print "------ parvesh error"
(oops/oget e "nativeEvent.error")))
:source {:uri (str url "&download=true")}}]])