fix(style): :resize-method is not avaliable on ios (#18914)
This commit is contained in:
parent
a538e2896e
commit
33e637ff71
|
@ -25,10 +25,15 @@
|
||||||
|
|
||||||
(defn image
|
(defn image
|
||||||
[{:keys [source] :as props}]
|
[{:keys [source] :as props}]
|
||||||
[image-native
|
(let [props (cond-> props
|
||||||
(if (string? source)
|
platform/ios?
|
||||||
(assoc props :source {:uri source})
|
(dissoc :resize-method)
|
||||||
props)])
|
(and (:style props) platform/ios?)
|
||||||
|
(update :style dissoc :resize-method))]
|
||||||
|
[image-native
|
||||||
|
(if (string? source)
|
||||||
|
(assoc props :source {:uri source})
|
||||||
|
props)]))
|
||||||
|
|
||||||
(defn image-get-size
|
(defn image-get-size
|
||||||
[uri]
|
[uri]
|
||||||
|
|
Loading…
Reference in New Issue