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
|
||||
[{:keys [source] :as props}]
|
||||
[image-native
|
||||
(if (string? source)
|
||||
(assoc props :source {:uri source})
|
||||
props)])
|
||||
(let [props (cond-> props
|
||||
platform/ios?
|
||||
(dissoc :resize-method)
|
||||
(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
|
||||
[uri]
|
||||
|
|
Loading…
Reference in New Issue