bug #3232 - fixed profile image setting
Signed-off-by: alwxndr <alwxndr@gmail.com>
This commit is contained in:
parent
ce524507da
commit
8696629b66
|
@ -7,7 +7,9 @@
|
||||||
(def default-camera (.-default js-dependecies/camera))
|
(def default-camera (.-default js-dependecies/camera))
|
||||||
|
|
||||||
(defn constants [t]
|
(defn constants [t]
|
||||||
(-> (object/get js-dependecies/camera "constants" t)
|
(-> js-dependecies/camera
|
||||||
|
(object/get "constants")
|
||||||
|
(object/get t)
|
||||||
(js->clj)
|
(js->clj)
|
||||||
(walk/keywordize-keys)))
|
(walk/keywordize-keys)))
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,9 @@
|
||||||
[status-im.react-native.js-dependencies :as rn-dependencies]))
|
[status-im.react-native.js-dependencies :as rn-dependencies]))
|
||||||
|
|
||||||
(defn- resize [path max-width max-height on-resize on-error]
|
(defn- resize [path max-width max-height on-resize on-error]
|
||||||
(let [resize-fn (object/get rn-dependencies/image-resizer "default" "createResizedImage")]
|
(let [resize-fn (-> rn-dependencies/image-resizer
|
||||||
|
(object/get "default")
|
||||||
|
(object/get "createResizedImage"))]
|
||||||
(-> (resize-fn path max-width max-height "JPEG" 75 0 nil)
|
(-> (resize-fn path max-width max-height "JPEG" 75 0 nil)
|
||||||
(.then on-resize)
|
(.then on-resize)
|
||||||
(.catch on-error))))
|
(.catch on-error))))
|
||||||
|
|
Loading…
Reference in New Issue